[OOZY] How to know if a program is available in the repository and its version
Peter Garrett
peter.garrett at optusnet.com.au
Mon May 8 10:09:04 UTC 2006
On Mon, 08 May 2006 11:49:03 +0200
Christoph Bier <christoph.bier at web.de> wrote:
> Chris Neary schrieb am 08.05.2006 11:31:
>
> > apt-cache search nameoftheprogram
> > or
> > apt-cache show exactnameoftheprogram
> >
> > There's a way to show the installed version as well, surely. [...]
>
> dpkg -l <package>
>
> Shows the state of the package (installed, not installed, configured
> ...), the version, and a short description.
Another useful tool is apt-cache policy
For example:
$ apt-cache policy sylpheed
sylpheed:
Installed: 2.1.1-1ubuntu0.1
Candidate: 2.1.1-1ubuntu0.1
Version table:
*** 2.1.1-1ubuntu0.1 0
500 http://security.ubuntu.com breezy-security/universe Packages
100 /var/lib/dpkg/status
2.1.1-1 0
500 http://au.archive.ubuntu.com breezy/universe Packages
Peter
---
"Hyperlinks subvert hierarchy."
-The Cluetrain Manifesto
More information about the ubuntu-users
mailing list