LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   required feature in apt-get (https://www.linuxquestions.org/questions/linux-newbie-8/required-feature-in-apt-get-4175412520/)

iashkan 06-20-2012 12:53 PM

required feature in apt-get
 
Hi all

in yum we can use whatprovides feature to find exact file which package will install. like libXpat.so.6

is there some things similar in apt-get or aptitude?
I've read man page and found nothing.


regards,

sag47 06-20-2012 12:56 PM

Code:

dpkg -S /some/file
Read the man page for more info.

SAM

iashkan 06-20-2012 01:00 PM

-S, --search filename-search-pattern...
Search for a filename from installed packages

installed packages?

knudfl 06-20-2012 01:04 PM

Finding the "package name" that provides <file> :

# apt-get install apt-file
$ apt-file search <file>

http://packages.debian.org/squeeze/apt-file
http://pwet.fr/man/linux/commandes/apt_file

.

iashkan 06-20-2012 01:09 PM

thank you
 
Quote:

Originally Posted by knudfl (Post 4707953)
Finding the "package name" that provides <file> :

# apt-get install apt-file
$ apt-file search <file>

http://packages.debian.org/squeeze/apt-file
http://pwet.fr/man/linux/commandes/apt_file

.

tank you
really usefull


All times are GMT -5. The time now is 12:28 PM.