Re: how to check whether a package has been installed

2006-06-28 Thread Christopher Nelson
On Tue, Jun 27, 2006 at 12:11:23PM +0200, Johannes Wiedersich wrote:
 Rodney D. Myers wrote:
 On Mon, 26 Jun 2006 16:38:33 -0700
 Martin Paraskevov [EMAIL PROTECTED] wrote:
 
 rpm lets you check whether a packege has been installed.
 is this possible to do with apt-get or some other tool as well?
 
 - martin
 
 dpkg -l | grep package name
 
 Better:
 
 dpkg -l package name

Don't forget about using expressions with that, eg.: 'dpkg -l *latex*'
Most of you probably already knew that, but I thought I'd mention it as
I use it often ;)

-- 
Christopher Nelson -- [EMAIL PROTECTED]
---
If mathematically you end up with the wrong answer, try multiplying by
the page number.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to check whether a package has been installed

2006-06-28 Thread Jörg-Volker Peetz
How about
  aptitude search ~iapt
showing all installed packages with substring apt in their name?

Regards,
Jörg-Volker.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to check whether a package has been installed

2006-06-28 Thread Stephen
On Wed, Jun 28, 2006 at 01:23:30PM +0200 or thereabouts, Jörg-Volker Peetz 
wrote:
 How about
   aptitude search ~iapt
 showing all installed packages with substring apt in their name?

Now that is way cool. Thanks !

-- 
Regards
Stephen
+
Remark of Dr. Baldwin's concerning upstarts: We don't care to eat toadstools
that think they are truffles.
-- Mark Twain, Pudd'nhead Wilson's Calendar
+


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how to check whether a package has been installed

2006-06-27 Thread Johannes Wiedersich

Rodney D. Myers wrote:

On Mon, 26 Jun 2006 16:38:33 -0700
Martin Paraskevov [EMAIL PROTECTED] wrote:


rpm lets you check whether a packege has been installed.
is this possible to do with apt-get or some other tool as well?

- martin


dpkg -l | grep package name


Better:

dpkg -l package name

Johannes


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




how to check whether a package has been installed

2006-06-26 Thread Martin Paraskevov
rpm lets you check whether a packege has been installed.is this possible to do with apt-get or some other tool as well?- martin


Re: how to check whether a package has been installed

2006-06-26 Thread Rodney D. Myers
On Mon, 26 Jun 2006 16:38:33 -0700
Martin Paraskevov [EMAIL PROTECTED] wrote:

 rpm lets you check whether a packege has been installed.
 is this possible to do with apt-get or some other tool as well?
 
 - martin

dpkg -l | grep package name

-- 
Rodney D. Myers [EMAIL PROTECTED] 
Registered Linux User #96112
ICQ#: AIM#:   YAHOO:
18002350  mailman452  mailman42_5

They that can give up essential liberty to obtain a 
little temporary safety deserve neither liberty nor safety.
Ben Franklin - 1759


signature.asc
Description: PGP signature


Re: how to check whether a package has been installed

2006-06-26 Thread Rick Macdonald

Martin Paraskevov wrote:


rpm lets you check whether a packege has been installed.
is this possible to do with apt-get or some other tool as well?


Here are a couple, not to mention the various GUIs:

rickmlinux:~# dpkg --get-selections|grep apt
apt install
apt-utils   install
aptitudeinstall
gnome-apt   install
synapticinstall


rickmlinux:~# dpkg -s apt 
Package: apt

Status: install ok installed
Priority: important
Section: base
Installed-Size: 3664
Maintainer: APT Development Team deity@lists.debian.org
Architecture: i386
Version: 0.5.28.6
Replaces: libapt-pkg-doc ( 0.3.7), libapt-pkg-dev ( 0.3.7)
Provides: libapt-pkg-libc6.3-5-3.3
Depends: libc6 (= 2.3.2.ds1-4), libgcc1 (= 1:3.4.1-3), libstdc++5 (= 
1:3.3.4-1)

Suggests: aptitude | synaptic | gnome-apt | wajig, dpkg-dev, apt-doc
Description: Advanced front-end for dpkg
This is Debian's next generation front-end for the dpkg package manager.
It provides the apt-get utility and APT dselect method that provides a
simpler, safer way to install and upgrade packages.
.
APT features complete installation ordering, multiple source capability
and several other unique features, see the Users Guide in apt-doc.

...RickM...


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to check whether a package has been installed

2006-06-26 Thread Rick Macdonald

Rick Macdonald wrote:


Martin Paraskevov wrote:


rpm lets you check whether a packege has been installed.
is this possible to do with apt-get or some other tool as well?


Here are a couple, not to mention the various GUIs:

rickmlinux:~# dpkg --get-selections|grep apt
apt install
apt-utils   install
aptitudeinstall
gnome-apt   install
synapticinstall


rickmlinux:~# dpkg -s apt Package: apt



Sorry, bad copy/paste job. This should be:

rickmlinux:~# dpkg -s apt
Package: apt
Status: install ok installed

...etc...

Somebody else just offered dpkg -l. I like that better because it 
shows the versions:


rickmlinux:~# dpkg -l|grep apt
ii  apt0.5.28.6   Advanced front-end for dpkg
ii  apt-utils  0.5.28.6   APT utility programs
ii  aptitude   0.2.15.9-1 terminal-based apt frontend
ii  gnome-apt  0.4.7-1.2  graphical package manager
ii  libpcap0   0.6.2-2System interface for user-level packet 
captu
ii  libpcap0.7 0.7.2-7System interface for user-level packet 
captu
ii  libpcap0.8 0.8.3-5System interface for user-level packet 
captu

ii  synaptic   0.55+cvs200503 Graphical package manager

If you know the eact pavkage name you get to see the column headings:   ;-)

rickmlinux:~# dpkg -l apt
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)

||/ Name   VersionDescription
+++-==-==-
ii  apt0.5.28.6   Advanced front-end for dpkg


Status: install ok installed
Priority: important
Section: base
Installed-Size: 3664
Maintainer: APT Development Team deity@lists.debian.org
Architecture: i386
Version: 0.5.28.6
Replaces: libapt-pkg-doc ( 0.3.7), libapt-pkg-dev ( 0.3.7)
Provides: libapt-pkg-libc6.3-5-3.3
Depends: libc6 (= 2.3.2.ds1-4), libgcc1 (= 1:3.4.1-3), libstdc++5 
(= 1:3.3.4-1)

Suggests: aptitude | synaptic | gnome-apt | wajig, dpkg-dev, apt-doc
Description: Advanced front-end for dpkg
This is Debian's next generation front-end for the dpkg package manager.
It provides the apt-get utility and APT dselect method that provides a
simpler, safer way to install and upgrade packages.
.
APT features complete installation ordering, multiple source capability
and several other unique features, see the Users Guide in apt-doc.

...RickM...





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: how to check whether a package has been installed

2006-06-26 Thread Stephen Cormier
On Monday 26 June 2006 20:38, Martin Paraskevov wrote:
 rpm lets you check whether a packege has been installed.
 is this possible to do with apt-get or some other tool as well?

 - martin


$ apt-cache policy apt
apt:
  Installed: 0.6.44.2
  Candidate: 0.6.44.2
  Version table:
 *** 0.6.44.2 0
990 http://ftp2.de.debian.org testing/main Packages
600 http://ftp2.de.debian.org sid/main Packages
100 /var/lib/dpkg/status


Stephen

-- 
GPG Pubic Key: http://users.eastlink.ca/~stephencormier/publickey.asc


pgp8Wx7Kh0i47.pgp
Description: PGP signature


Re: how to check whether a package has been installed

2006-06-26 Thread Bill Jones

On 6/26/06, Martin Paraskevov [EMAIL PROTECTED] wrote:

rpm lets you check whether a packege has been installed.
is this possible to do with apt-get or some other tool as well?


apt-cache policy package

For example:
debian:~# apt-cache policy aptitude
aptitude:
 Installed: 0.4.1-1.1
 Candidate: 0.4.1-1.1
 Version table:
*** 0.4.1-1.1 0
   500 http://ftp.us.debian.org etch/main Packages
   100 /var/lib/dpkg/status

debian:~# apt-cache policy yum
yum:
 Installed: (none)
 Candidate: 2.4.0-3
 Version table:
2.4.0-3 0
   500 http://ftp.us.debian.org etch/main Packages
debian:~#

HTH/Sx =)
--
WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]