PDA

View Full Version : [ubuntu] aptitude upgrade - which Package, Version



boondocks
September 22nd, 2009, 03:46 AM
On Ubuntu 9.04

Before installing a package - How do I find out which version of that Package is available from aptitude?

stlsaint
September 22nd, 2009, 05:24 AM
depends on what you are installing...ie firefox you can go to site to see what version it is for...everything in the repos will be done via sudo apt-get update

ibuclaw
September 22nd, 2009, 05:37 AM
On Ubuntu 9.04

Before installing a package - How do I find out which version of that Package is available from aptitude?

Do you mean the -V option?

ie:


$ sudo aptitude -V dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
The following packages will be upgraded:
libneon27 [0.28.2-6.1 -> 0.28.2-6.1ubuntu0.1] libneon27-gnutls [0.28.2-6.1 -> 0.28.2-6.1ubuntu0.1] libpq5 [8.3.7-1 -> 8.3.8-0ubuntu9.04]
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 558kB of archives. After unpacking 12.3kB will be used.
Do you want to continue? [Y/n/?]


Regards
Iain

boondocks
September 22nd, 2009, 07:19 AM
Do you mean the -V option?

I mean, when I am searching for a package. If found, which version is it?


sudo aptitude search Name_Of_Package

How do I make this tell me the version of the available package?

tommcd
September 22nd, 2009, 08:11 AM
I mean, when I am searching for a package. If found, which version is it?


sudo aptitude search Name_Of_Package

How do I make this tell me the version of the available package?
To see what version of a package you have installed and whether a newer version is available, or to see what version of a package you may want to install is offered in the repos, use apt-cache policy like this:


tom@ubuntu:~$ apt-cache policy firefox
firefox:
Installed: 3.0.14+build2+nobinonly-0ubuntu0.9.04.1
Candidate: 3.0.14+build2+nobinonly-0ubuntu0.9.04.1
Version table:
*** 3.0.14+build2+nobinonly-0ubuntu0.9.04.1 0
500 http://us.archive.ubuntu.com jaunty-updates/main Packages
500 http://security.ubuntu.com jaunty-security/main Packages
100 /var/lib/dpkg/status
3.0.8+nobinonly-0ubuntu3 0
500 http://us.archive.ubuntu.com jaunty/main Packages

Note that apt-cache will tell you if a package is installed or not and what version is available in the repos.

boondocks
September 23rd, 2009, 10:18 PM
To see what version of a package you have installed and whether a newer version is available, or to see what version of a package you may want to install is offered in the repos, use apt-cache policy like this:


tom@ubuntu:~$ apt-cache policy firefox
firefox:
Installed: 3.0.14+build2+nobinonly-0ubuntu0.9.04.1
Candidate: 3.0.14+build2+nobinonly-0ubuntu0.9.04.1
Version table:
*** 3.0.14+build2+nobinonly-0ubuntu0.9.04.1 0
500 http://us.archive.ubuntu.com jaunty-updates/main Packages
500 http://security.ubuntu.com jaunty-security/main Packages
100 /var/lib/dpkg/status
3.0.8+nobinonly-0ubuntu3 0
500 http://us.archive.ubuntu.com jaunty/main Packages

Note that apt-cache will tell you if a package is installed or not and what version is available in the repos.

Thank you.
This is what I needed.