Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 03-08-2006, 07:49 PM   #16
LQ Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190

apt-cache policy is handy for checking exactly what version of a package you have installed. and if you do an apt-get update first it will also show what the available version is for the package... it will also show which repository the packages are coming from..

heres an example
debian:~# apt-cache policy mysql-common
Installed: 5.0.18-8
Candidate: 5.0.18-9
Version table:
5.0.18-9 0
500 unstable/main Packages
*** 5.0.18-8 0
500 unstable/main Packages
100 /var/lib/dpkg/status

debian:~# apt-cache policy xserver-xorg
Installed: 6.9.0.dfsg.1-4
Candidate: 6.9.0.dfsg.1-4
Version table:
*** 6.9.0.dfsg.1-4 0
500 unstable/main Packages
500 unstable/main Packages
100 /var/lib/dpkg/status
Someone already answered your dist-upgrade question.. theres more of an explanation in man apt-get.. basically dist-upgrade is a bit more agressive in dependancy handling than upgrade..

I run sid so I'll get a number of packages that are held back when I do normal apt-get upgrades, so occasionally I run apt-get dist-upgrade to get those packages that have been held back to install / update..

debian:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
abiword epiphany-browser fontconfig gnome-core gnome-vlc
gnome-volume-manager gnomemeeting hal libdirectfb-0.9-22 libfontconfig1
libglib-perl libgtk2-perl libmetacity0 libperl5.8 libpt-plugins-alsa
libpt-plugins-v4l libsensors3 metacity mozilla-plugin-vlc mplayer-586 perl
perl-base perl-modules perl-suid pmount udev vlc vlc-plugin-alsa
vlc-plugin-esd vlc-plugin-sdl wxvlc yelp
The following packages will be upgraded:
libmysqlclient15 libpostproccvs51 libqt4-core libqt4-debug libqt4-gui
libqt4-qt3support libqt4-sql manpages manpages-dev myspell-en-gb
myspell-en-us mysql-common python2.3 qt4-dev-tools zlib1g zlib1g-dev
16 upgraded, 0 newly installed, 0 to remove and 32 not upgraded.
Need to get 64.1MB of archives.
After unpacking 152MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Old 03-09-2006, 08:54 AM   #17
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 54
Thanks guys- I'm bookmarking this thread.


configuration, debian

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ANy luck with... phantasm Linux - General 7 08-09-2005 04:35 PM
wish me luck Fraudulent Linux - Certification 4 02-19-2005 02:01 AM
Wish me luck.... Nichole_knc Member Success Stories 11 08-25-2004 08:30 AM
wish me luck gbrewste General 6 06-25-2004 05:46 PM
wish me luck 46&2 General 5 03-15-2004 06:39 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration