[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get listing?

--- Michael Z Daryabeygi <mzd@sligowebworks.com> wrote:
> does apt-cache show packages available from your sources list or 
> packages that have been downloaded?

They show both.

If you want a quickish way of determining if a package is installed
(there's lots of ways one can do this), you can do:

$ apt-cache policy <pkgname> | grep Installed


$ apt-cache policy fvwm | grep Installed
  Installed: 2.5.12-4

$ apt-cache policy kde | grep Installed
  Installed: (none)

-- Thomas Adam

"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)

Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply to: