This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d49bf026f75fc1c493caee13a885eaec505768a7

commit d49bf026f75fc1c493caee13a885eaec505768a7
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Oct 23 01:48:22 2023 +0200

    man: Update dpkg EXAMPLES section
    
    - Replace obsolete reference to elvis with neovim.
    - Use --print-avail instead of directly accessing the available db.
    - Update install example from an archive, by removing obsolete reference
      to the package section (not part of the archive pool structure anymore),
      installing directly w/o a prior change directory, and using a package
      modern package filename including the architecture.
    - Remove old --merge-avail method using an intermediate file.
---
 man/dpkg.pod | 29 +++++++++--------------------
 1 file changed, 9 insertions(+), 20 deletions(-)

diff --git a/man/dpkg.pod b/man/dpkg.pod
index 7effd8033..0b27bd2c8 100644
--- a/man/dpkg.pod
+++ b/man/dpkg.pod
@@ -1535,7 +1535,7 @@ To see the entries in I<%ADMINDIR%/available> of two 
packages:
 
 =over
 
- dpkg --print-avail elvis vim | less
+ dpkg --print-avail vim neovim | less
 
 =back
 
@@ -1543,26 +1543,26 @@ To search the listing of packages yourself:
 
 =over
 
- less %ADMINDIR%/available
+ dpkg --print-avail | less
 
 =back
 
-To remove an installed elvis package:
+To remove an installed neovim package:
 
 =over
 
- dpkg -r elvis
+ dpkg -r neovim
 
 =back
 
-To install a package, you first need to find it in an archive or
-media disc. The I<available> file shows that the vim package is in section
-B<editors>:
+To install a package, you first need to find it in an archive or media disc.
+When using an archive based on a pool structure,
+knowing the archive area and the name of the package is enough to infer
+the pathname:
 
 =over
 
- cd /media/bdrom/pool/main/v/vim
- dpkg -i vim_4.5-3.deb
+ dpkg -i /media/bdrom/pool/main/v/vim/vim_9.0.2018-1_amd64.deb
 
 =back
 
@@ -1585,17 +1585,6 @@ details), for example:
 
 =back
 
-or with dpkg 1.17.6 and earlier:
-
-=over
-
- avail=$(mktemp)
- apt-cache dumpavail >"$avail"
- dpkg --merge-avail "$avail"
- rm "$avail"
-
-=back
-
 you can install it with:
 
 =over

-- 
Dpkg.Org's dpkg

Reply via email to