summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-07-28 13:26:03 +0200
committerGuillem Jover <guillem@debian.org>2013-07-28 13:26:03 +0200
commitaf2524c23478134ca90d7990127205550c5d1d4d (patch)
treee03255d99804662b3b70e1b8108eb405624e555f /man
parent1eb8370227dd72cee4c324ff1f2a2153145cc278 (diff)
downloaddpkg-af2524c23478134ca90d7990127205550c5d1d4d.tar.gz
dpkg(1): Document available database update procedure to set selections
Mention that the available database needs to be updated, refer to the dpkg FAQ for more details, and add an example when using apt. Suggested-by: Klaus Ita <koki.eml@gmail.com>
Diffstat (limited to 'man')
-rw-r--r--man/dpkg.114
1 files changed, 11 insertions, 3 deletions
diff --git a/man/dpkg.1 b/man/dpkg.1
index 0ab88c431..60ea048dd 100644
--- a/man/dpkg.1
+++ b/man/dpkg.1
@@ -23,7 +23,7 @@
.\" You should have received a copy of the GNU General Public License
.\" along with this program. If not, see <http://www.gnu.org/licenses/>.
.
-.TH dpkg 1 "2013-04-05" "Debian Project" "dpkg suite"
+.TH dpkg 1 "2013-07-28" "Debian Project" "dpkg suite"
.SH NAME
dpkg \- package manager for Debian
.
@@ -800,8 +800,16 @@ To make a local copy of the package selection states:
\fB dpkg \-\-get\-selections >myselections\fP
.br
-You might transfer this file to another computer, and install it there
-with:
+You might transfer this file to another computer, and after having updated
+the available database there with your package manager frontend of choice
+(see https://wiki.debian.org/Teams/Dpkg/FAQ for more details), for example:
+.br
+\fB avail=`mktemp`\fP
+\fB apt\-cache dumpavail >"$avail"\fP
+\fB dpkg \-\-merge\-avail "$avail"\fP
+\fB rm "$avail"\fP
+.br
+you can install it with:
.br
\fB dpkg \-\-clear\-selections\fP
\fB dpkg \-\-set\-selections <myselections\fP