Re: Apt-get: how to check version number before installation?



Padraig wrote:

On Dec 10, 2007 4:20 PM, Dotan Cohen <dotancohen@xxxxxxxxx> wrote:

How can I check what version of a particular program apt-get will
install,
before I
install it.


sudo apt-get search <what you're looking for>

apt-cache policy <package>

is better. It tells you exactly which versions are available at every
repository in your sources. It also helps explain why you're getting the
wrong versions if you use apt pinning! E.G. (bella is my local cache -
created with apt-move; /var/lib/dpkg/status should always be the currently
installed version):

$ apt-cache policy firefox
firefox:
Installed: 2.0.0.11+2nobinonly-0ubuntu0.7.10
Candidate: 2.0.0.11+2nobinonly-0ubuntu0.7.10
Version table:
*** 2.0.0.11+2nobinonly-0ubuntu0.7.10 0
500 http://ca.archive.ubuntu.com gutsy-updates/main Packages
500 http://security.ubuntu.com gutsy-security/main Packages
100 /var/lib/dpkg/status
2.0.0.10+2nobinonly-0ubuntu1.7.10.1 0
500 http://bella feisty/main Packages
2.0.0.8+2nobinonly-0ubuntu1 0
500 http://bella feisty/main Packages
2.0.0.6+2nobinonly-0ubuntu1 0
500 http://bella feisty/main Packages
500 http://ca.archive.ubuntu.com gutsy/main Packages
2.0.0.6+1-0ubuntu1 0
500 http://bella feisty/main Packages

--
derek


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • FS: Complete Linux Recording Package Ready To Roll.
    ... How to install Rehmudi-2.0 ... if you don't have any sound, ... dependencies of Agnula Packages ... ... from the new kernel. ...
    (comp.os.linux.misc)
  • Re: Complete Linux Recording Package Ready To Roll.
    ... How to install Rehmudi-2.0 ... if you don't have any sound, ... dependencies of Agnula Packages ... ... from the new kernel. ...
    (comp.os.linux.misc)
  • Which debian sources to use to install to Knoppix 4.0.2?
    ... running into a problem when I install software to version 4.0.2 that I ... Check out the list of extra packages to be installed, ... akregator ark cupsys cupsys-bsd cupsys-client gcc-4.0-base gs-common ... kdepim-kfile-plugins kdepim-kio-plugins kdeprint kdesktop kdessh kdf ...
    (comp.os.linux.misc)
  • Apt Gone Mad?-Or Is It Me?-Expert Help Needed
    ... So tried to upgrade OO to 2.0 but Apt refused to do so. ... Aptitude doesn't show anything but Wajig shows unmet dependency for kdelibs-data. ... The following packages are unused and will be REMOVED: agsync arson barcode brahms cdda2wav cddb digikam digikamimageplugins gmessage guarddog guidedog hotswap-gui hotswap-text i2e id3v2 kbarcode kbear kbiff kdebase-dev kdirstat kile kimdaba klog klogic kmymoney2 knetfilter knutclient komba2 kover kprof kpsk krusader ksimus ksimus-boolean ksimus-datarecorder ksimus-floatingpoint ksocrat ksocrat-data kvdr kvirc kvirc-data kvirc-doc kwavecontrol kxmleditor lesstif2 libdynamite libimlib2-dev libkonq4-dev libmimedir liborange ... ChatagnierL-Home:/temp# wajig install openoffice.org Reading Package Lists... ...
    (Debian-User)
  • Re: Debian or Ubuntu Dilemma
    ... Debian Stable < Ubuntu < Debian Testing/Unstable < Any Distro w/mutt packaging ... You'll eventually have to compile a few packages with any distro (from Debian ... Ubuntu seems to be a good balance if its default install does almost ...
    (Debian-User)