apt-cache policy %packagename%
%packagename% stands for package which version we want to check.
Sample output for 'nginx':
server:~# apt-cache policy nginx
nginx:
Installed: (none)
Candidate: 1.1.0-1
Version table:
1.1.0-1 0
500 http://ftp.us.debian.org testing/main Packages
nginx:
Installed: (none)
Candidate: 1.1.0-1
Version table:
1.1.0-1 0
500 http://ftp.us.debian.org testing/main Packages
Note: you may want to enable testing repository to have the latest, yet not time-proved versions.
You may also want to simulate install process:
apt-get -s install %packagename%
-s here stands for 'simulate'.
No comments:
Post a Comment