LinuxQuestions.org
Register a domain and help support LQ
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 02-13-2014, 11:54 AM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
yum command for directories


I know that the command:

yum provides filename

gives the name of the package that created and installed the file. I am looking for an
equivalent command that can apply to directories. Is there a command for determing what
package created and installed a directory in Linux 6,5, 64 bit Centos?

Thanks,

R,

jyunker
 
Old 02-13-2014, 12:10 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
yum whatprovides and rpm -qf work for directories as well. Take in mind that all the default system directories are provided by the package filesystem. Others could have been created by other packages, but some (parent) directories don't belong to any package if they have been created together with their sub-directories. For example on my CentOS system I have a directory named /opt/intel/composerxe-2011.0.084 and
Code:
$ rpm -qf /opt/intel/composerxe-2011.0.084
intel-openmp-084-12.0-0.x86_64
intel-openmp-devel-084-12.0-0.x86_64
intel-compilerpro-common-084-12.0-0.noarch
intel-compilerpro-vars-084-12.0-0.noarch
...
but if I try the parent directory /opt/intel I get no results:
Code:
$ rpm -qf /opt/intel
file /opt/intel is not owned by any package
even if it has been created from the aforementioned intel packages.
 
Old 02-13-2014, 01:23 PM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
Thanks I will try it.

R,

jyunker
 
  


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] rpm command and yum command not found Joaquin Red Hat 27 04-09-2013 10:17 AM
Yum failed after using yum clean all command arunjones Linux - Newbie 3 07-21-2012 04:52 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
[SOLVED] Command line: chown command recursively on invisible directories? JZL240I-U Linux - Software 9 10-29-2010 05:34 AM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 08:28 AM


All times are GMT -5. The time now is 03:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration