FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-17-2008, 02:35 PM
Bob Cox
 
Default Aptitude/apt search question

I may be missing the blindingly obvious, so apologies if so.

I wanted to run the 'ip' command and found it wasn't installed on the
particular box I was using. As it was installed on another machine I
was able to:

bob@trantor:~$ which ip
/bin/ip

bob@trantor:~$ dpkg -S ip | grep '/bin/ip$'
iproute: /bin/ip

So I knew I needed the 'iproute' package. Problem solved.

However, if I hadn't had it installed on that other machine, how could I
have discovered which package I needed *without* using the excellent
package search facility at
http://www.debian.org/distrib/packages#search_contents - is this sort of
search possible with aptitude and/or apt-cache etc?

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:40 PM
Steve Kemp
 
Default Aptitude/apt search question

> However, if I hadn't had it installed on that other machine, how could I
> have discovered which package I needed *without* using the excellent
> package search facility at
> http://www.debian.org/distrib/packages#search_contents - is this sort of
> search possible with aptitude and/or apt-cache etc?

Yes, via the apt-file package:

http://www.debian-administration.org/articles/334

Steve
--
Managed Anti-Spam Service
http://mail-scanning.com/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:42 PM
"Eugene V. Lyubimkin"
 
Default Aptitude/apt search question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob Cox wrote:
> I may be missing the blindingly obvious, so apologies if so.
>
> I wanted to run the 'ip' command and found it wasn't installed on the
> particular box I was using. As it was installed on another machine I
> was able to:
>
> bob@trantor:~$ which ip
> /bin/ip
>
> bob@trantor:~$ dpkg -S ip | grep '/bin/ip$'
> iproute: /bin/ip
>
> So I knew I needed the 'iproute' package. Problem solved.
>
> However, if I hadn't had it installed on that other machine, how could I
> have discovered which package I needed *without* using the excellent
> package search facility at
> http://www.debian.org/distrib/packages#search_contents - is this sort of
> search possible with aptitude and/or apt-cache etc?
>
man apt-file

- --
Eugene V. Lyubimkin aka JackYF
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh/WnIACgkQchorMMFUmYzGUwCcCOeVKQnQA5W341e0nGB00bOg
AwIAoLdQ/dXwm5R4fqZDKnU+WtQM5evp
=PLvn
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-17-2008, 02:46 PM
Bob Cox
 
Default Aptitude/apt search question

On Thu, Jul 17, 2008 at 17:42:58 +0300, Eugene V. Lyubimkin (jackyf.devel@gmail.com) wrote:

> man apt-file

Steve, Eugene - many thanks. Have just installed apt-file and will have
a play with it now.

--
Bob Cox. Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-18-2008, 07:39 AM
Florian Kulzer
 
Default Aptitude/apt search question

On Thu, Jul 17, 2008 at 15:35:28 +0100, Bob Cox wrote:
> I may be missing the blindingly obvious, so apologies if so.
>
> I wanted to run the 'ip' command and found it wasn't installed on the
> particular box I was using. As it was installed on another machine I
> was able to:
>
> bob@trantor:~$ which ip
> /bin/ip
>
> bob@trantor:~$ dpkg -S ip | grep '/bin/ip$'
> iproute: /bin/ip
>
> So I knew I needed the 'iproute' package. Problem solved.
>
> However, if I hadn't had it installed on that other machine, how could I
> have discovered which package I needed *without* using the excellent
> package search facility at
> http://www.debian.org/distrib/packages#search_contents - is this sort of
> search possible with aptitude and/or apt-cache etc?

It is possible for etc = apt-file.

--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 09:29 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org