LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2012, 01:53 PM   #1
iashkan
LQ Newbie
 
Registered: Jun 2011
Location: Tehran, Iran
Distribution: Centos, Debian, Freebsd
Posts: 24

Rep: Reputation: Disabled
Question 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,
 
Old 06-20-2012, 01:56 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Code:
dpkg -S /some/file
Read the man page for more info.

SAM
 
Old 06-20-2012, 02:00 PM   #3
iashkan
LQ Newbie
 
Registered: Jun 2011
Location: Tehran, Iran
Distribution: Centos, Debian, Freebsd
Posts: 24

Original Poster
Rep: Reputation: Disabled
-S, --search filename-search-pattern...
Search for a filename from installed packages

installed packages?
 
Old 06-20-2012, 02:04 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

.
 
Old 06-20-2012, 02:09 PM   #5
iashkan
LQ Newbie
 
Registered: Jun 2011
Location: Tehran, Iran
Distribution: Centos, Debian, Freebsd
Posts: 24

Original Poster
Rep: Reputation: Disabled
thank you

Quote:
Originally Posted by knudfl View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DPKG/apt-get broken - GLIBC_2.6 not found (required by dpkg) Alize Linux - Software 15 05-23-2011 05:25 AM
[SOLVED] [sid] adobe-flasplugin is reinstall-required but apt can't find archive for it MaxIBoy Debian 21 12-10-2009 08:18 AM
declining required dependency using apt-get hardbop200 Debian 4 05-19-2008 04:04 PM
Does apt-get/aptitude's purge option removed required dep of other packages? Akhran Debian 1 09-05-2005 07:52 PM
Alternate Apt mirror for gnome updates required timko Fedora 1 02-20-2004 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration