1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
=head1 NAME
apt-show-versions - Lists available package versions with distribution
=head1 DESCRIPTION
apt-show-versions parses the dpkg status file and the APT lists for
the installed and available package versions and distribution and
shows upgrade options within the specific distribution of the selected
package.
This is really useful if you have a mixed stable/testing environment
and want to list all packages which are from testing and can be
upgraded in testing.
apt-show-versions uses caching for the status information of installed
and available packages. If you run apt-show-versions as root the
cache is updated as needed. If you run as non-root uses the newest
available information, but can't update the cache. If you run as root
with the option B<-i> the cache is initialized or updated only.
=head1 SYNOPSIS
B<apt-show-versions> [B<-h>] [[B<-p>] I<package name>] [B<-a>] [B<-b>]
=head1 OPTIONS
If you don't give any options the status of all installed packages is
printed.
=over 4
=item B<-p> I<package>, B<--package>=I<package>
Print available and installed versions for specified I<package>. You
can also specify a package name without the option B<-p>. If B<-p> and
a package name are missing, all installed packages are displayed.
=item B<-r>, B<--regex>
interpret I<package> from option B<-p> as a regex.
=item B<-u>, B<--upgradeable>
Print only upgradeable packages
=item B<-a>, B<--allversions>
Print all available versions of the selected packages
=item B<-b>, B<--brief>
Print only package_name/distribution for upgradeable packages
=item B<-v>, B<--verbose>
Prints out verbose messages.
=item B<-i>, B<--initialize>
Initialize or update package cache only (as root). Do this everytime
when the status of the installed or available packages has changed.
=item B<-stf> I<file>, B<--status-file>=I<file>
Use I<file> as the dpkg status file instead of /var/lib/dpkg/status
=item B<-ld> I<directory>, B<--list-dir>=I<directory>
Use I<directory> as path to apt's list files instead of
/var/state/apt/lists/ or /var/lib/apt/lists/
=item B<-h>, B<--help>
Prints out command-line help.
=back
=head1 EXAMPLES
If you want to know for all your installed packages wether they are
uptodate or upgradeable, use:
apt-show-versions
If you want to have a list of all upgradeable packages:
apt-show-versions -u
To get a list of all available versions of libc6:
apt-show-versions -a -p libc6
To upgrade all packages in testing:
apt-get install `apt-show-versions -u -b | fgrep testing`
=head1 AUTHOR
Christoph Martin, martin@uni-mainz.de
=head1 SEE ALSO
apt(8), dpkg(1)
=cut
|