Looking for a file within a given slackware distribution. | Unix Linux Forums | Slackware

  Go Back    


Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.

Looking for a file within a given slackware distribution.

Slackware


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-18-2013
stf92 stf92 is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 6 June 2014, 9:37 PM EDT
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Looking for a file within a given slackware distribution.

Hi: suppose you want to look for file foo belonging to the Slackware N.N distribution. Then either you make a full installation or N.N and look into /var/log/packages (grep) or you go to some Slackware index tree in the web and you traverse the tree node by node, which would be a great deal of work to do and therefor impracticable.

Now suppose further that you are not able, momentarily, to install N.N to your disk. Perhaps you have it now occupied by another O.S. or for whatever reason. So your only place where to look at is the N.N disk itself. In this disk your have PACKAGES.TXT and FILELIST.TXT. But neither of these will do. They list packages but not their contents.

So, in spite of having the disk, you arent able to know if foo is there or not or, in case you know it is, in which package. Is this really true?
Sponsored Links
    #2  
Old 01-18-2013
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 30 July 2014, 6:29 PM EDT
Location: NM
Posts: 10,160
Thanks: 269
Thanked 781 Times in 731 Posts
A lot of the distribution files for linux are in the form of either somefile.tgz (sometimes somefile.tar.gz) or somefile.tar.bz2

These are compressed archives that cannot read directly.
mount your cd
for tgz and tar.gz files


Code:
cd /path/to/cdrom 
find . -name '*.tgz'  -exec tar tfz {} \; | grep foo
find . -name '*.tar.gz' - exec gzcat {} \; | tar tf - | grep foo

for bz2 files, ( .tbz, tar.bz2 etc. ) use


Code:
cd /path/to/cdrom
find . -name '*.bz2' -exec bzcat {} \;  | tar tf | grep foo

Sponsored Links
    #3  
Old 01-18-2013
stf92 stf92 is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 6 June 2014, 9:37 PM EDT
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Thank you very much.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 03:23 AM.