Re: How to query the package owning the file? (no packahe manger installed)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Johnny Hughes wrote:
> On Fri, 2005-07-15 at 17:35 +0530, Prasad Pillarisetti wrote:
> 
>>Guys recently I had this question asked in a technical interview.
>> 
>>How do I find out the package owning a particular file, when no
>>package managers are installed?
>> 
>>I am assuimg SRPMs are used to install the software?
>> 
>>Is this actually possible? Install the Linux OS without a package
>>manager?
>> 
>>I know "rpm -qf filename" gives the package owning the file.
>>But how to get the package name when I don't have any package manager?
>> 
>>Maybe this was a question to rattle me?
>>
>>-- 
>>Prasad Pillarisetti
>>"If everything is coming your way, then you are in the wrong lane" 
> 
> 
> To find the package that owns a particular file that is installed on
> your system, you would do:
> 
> rpm -q --whatprovides /full/path/to/file
> 

The question was "... whithout having a package manager installed (ie no
rpm).

-- 
Ugo

-> Please don't send a copy of your reply by e-mail.  I read the list.
-> Please avoid top-posting, long signatures and HTML, and cut the
irrelevant parts in your replies.


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux