Re: getting full package name

2004-09-07 Thread Oliver Elphick
On Tue, 2004-09-07 at 05:18, Craig Jackson wrote:
 Hi,
 If I would like to know the name of a package, for example dhcp,
 installed on the system, I would run
 
 dpkg -l | grep dhcp
 
 Most of the time I get the right name and I'm happy. But there are times
 when the name of the package is so long that I cannot tell what the name
 is.
 
 In that situation if grep through the file /var/lib/dpkg/available and I
 find the full name.
 
 This is just a helpful hint for newbies that may have this problem.

This is easier:

  COLUMNS=200 dpkg -l dhcp\*

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 For whosoever shall call upon the name of the Lord 
  shall be saved. Romans 10:13 


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



Re: getting full package name

2004-09-07 Thread Johann Koenig
On Monday September  6 at 11:18pm
Craig Jackson [EMAIL PROTECTED] wrote:

 Hi,
 If I would like to know the name of a package, for example dhcp,
 installed on the system, I would run
 
 dpkg -l | grep dhcp
 
 Most of the time I get the right name and I'm happy. But there are
 times when the name of the package is so long that I cannot tell what
 the name is.

You can use 'apt-cache search -n regexp' to restrict the search to
just the name, or 'dpkg --get-selections regexp' for installed
packages.
-- 
-johann koenig
Now Playing: 504plan - Or Else : Punk Vs. Emo (Disc 2 - Emo)
Today is Prickle-Prickle, the 30th day of Bureaucracy in the YOLD 3170
My public pgp key: http://mental-graffiti.com/pgp/


pgpvLIJhFuJys.pgp
Description: PGP signature


getting full package name

2004-09-06 Thread Craig Jackson
Hi,
If I would like to know the name of a package, for example dhcp,
installed on the system, I would run

dpkg -l | grep dhcp

Most of the time I get the right name and I'm happy. But there are times
when the name of the package is so long that I cannot tell what the name
is.

In that situation if grep through the file /var/lib/dpkg/available and I
find the full name.

This is just a helpful hint for newbies that may have this problem.

Craig Jackson


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



Re: getting full package name

2004-09-06 Thread Jacob S.
On Mon, 6 Sep 2004 23:18:42 -0500
Craig Jackson [EMAIL PROTECTED] wrote:

 Hi,
 If I would like to know the name of a package, for example dhcp,
 installed on the system, I would run
 
 dpkg -l | grep dhcp
 
 Most of the time I get the right name and I'm happy. But there are
 times when the name of the package is so long that I cannot tell what
 the name is.
 
 In that situation if grep through the file /var/lib/dpkg/available and
 I find the full name.

But if you really only want the information for packages that are
installed, and not all that are available, I like to do the following:

'dpkg --get-selections | grep dhcp'

HTH,
Jacob

-- 
GnuPG Key: 1024D/16377135

Random .signature #58:
With Windows Millennium, Microsoft was able to get the boot time down to
25 seconds. That's almost as short as it's uptime. 


pgpatvxkCaFaH.pgp
Description: PGP signature


Re: getting full package name

2004-09-06 Thread Kevin Mark
On Mon, Sep 06, 2004 at 11:18:42PM -0500, Craig Jackson wrote:
 Hi,
 If I would like to know the name of a package, for example dhcp,
 installed on the system, I would run
 
 dpkg -l | grep dhcp
 
 Most of the time I get the right name and I'm happy. But there are times
 when the name of the package is so long that I cannot tell what the name
 is.
 
 In that situation if grep through the file /var/lib/dpkg/available and I
 find the full name.
 
 This is just a helpful hint for newbies that may have this problem.
 
 Craig Jackson
 
Hi Craig,
the answer is to set the environmental variable COLUMNS temorarily:
COLUMNS=120 dpkg -l | grep dhcp

-Kev
-- 

(__)
(oo)
  /--\/
 / |||
*  /\---/\
   ~~   ~~
Have you mooed today?...


signature.asc
Description: Digital signature