LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Looking for a file within a given slackware distribution. (http://www.linuxquestions.org/questions/slackware-14/looking-for-a-file-within-a-given-slackware-distribution-4175446149/)

stf92 01-18-2013 04:07 AM

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 (I know such a list would include over one million file names).

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?

GazL 01-18-2013 04:17 AM

slackware/MANIFEST.bz2

Alien Bob 01-18-2013 04:25 AM

If you don't want to depend on having the disk, you can search online for any file in any package of any Slackware release: http://packages.slackware.com/

Eric

stf92 01-18-2013 04:28 AM

I never saw a shorter and more helpful reply than that! But I'm afraid this is a new feature in Slackware (the listing of the files). Oh, indeed, thank you very much.

stf92 01-18-2013 04:39 AM

There is one in Slackware 9.1 too. Perhaps there always has been a list of files (not packages) in the distribuition disks.

stf92 01-18-2013 04:44 AM

Quote:

Originally Posted by Alien Bob (Post 4872748)
If you don't want to depend on having the disk, you can search online for any file in any package of any Slackware release: http://packages.slackware.com/

Eric

Thank you very much, Eric.

To whoever matters: this facility had already been implemented many years ago. I could never know why it vanished after some time.

ruario 01-18-2013 04:53 AM

You can also use "slackpkg file-search". I'm sure this uses MANIFEST.bz2 underneath but it provides another interface to the same information.

ruario 01-18-2013 04:58 AM

Quote:

Originally Posted by stf92 (Post 4872750)
But I'm afraid this is a new feature in Slackware (the listing of the files)

Nope

Quote:

Originally Posted by stf92 (Post 4872758)
There is one in Slackware 9.1 too. Perhaps there always has been a list of files (not packages) in the distribuition disks.

looks to me like it has always been there (or at least for a very long time), e.g. slackware-3.3/slakware/MANIFEST (from 1997)

stf92 01-18-2013 06:03 AM

Thanks, thanks.

Didier Spaier 01-18-2013 04:56 PM

Now, to check that tetris be shipped in Slackware-1.1.2, then list all packages in that release, do this:
Code:

wget http://ftp.slackware.no/slackware/slackware-1.1.2/FILE_LIST
grep tetris FILE_LIST
grep tgz$ FILE_LIST

Just wondering: why don't we have tetris in Slackware-14.0 as well?

GazL 01-18-2013 05:42 PM

Quote:

Originally Posted by Didier Spaier (Post 4873173)
Just wondering : why don't we have tetris in Slackware-14.0 as well?

m-x tetris in emacs?

:)

Alien Bob 01-18-2013 05:58 PM

Quote:

Originally Posted by Didier Spaier (Post 4873173)
Just wondering : why don't we have tetris in Slackware-14.0 as well?

License issue. I wanted tt (tetris for terminals, http://www.miketaylor.org.uk/tech/tt/) in Slackware's installer, but the license holders are very strict apparently.

Eric

Didier Spaier 01-18-2013 06:36 PM

Quote:

Originally Posted by Alien Bob (Post 4873209)
License issue. I wanted tt (tetris for terminals, http://www.miketaylor.org.uk/tech/tt/) in Slackware's installer, but the license holders are very strict apparently.

I tried to launch the 'tt' included in Slackware-1.1.2, no way of course. file report :
Code:

tt: Linux/i386 impure executable (OMAGIC), stripped
After
Code:

modprobe  binfmt_aout
I only get this
Code:

bash-4.2$ ./tt
Killed

Any clue?

Alien Bob 01-19-2013 05:58 AM

Just recompile it for a newer Slackware... this is on 64-bit Slackware 13.37:
Code:

||          %%        ||  ^[[7mTETRIS FOR TERMINALS^[[27m
||                    ||
||                    ||  Written by Mike Taylor
||                    ||  Email: mirk@uk.co.ssl
||                    ||  Started: Fri May 26 12:26:05 BST 1989
||                    ||
||                    ||  Game level: 0  Game mode: 0
||                    ||
||                    ||  Score:        6
||                    ||  Pieces:        2
||                    ||  Levels:        0
||                    ||
||                    ||    Use keys:
||                    ||    =========
||                    ||    Move left:  ','
||                    ||    Move right: '/'
||          %%%%      ||    Rotate:    '.'
||        %%%%        ||    Drop:      ' '
||          ##        ||    Pause:      's'
||        ######      ||    Quit:      'q'
++====================++    Refresh:    '^L'

I will upload a set of packages later.

Eric

Didier Spaier 01-19-2013 05:01 PM

Quote:

Originally Posted by Alien Bob (Post 4873400)
I will upload a set of packages later.

I just installed it, thanks Eric :cool:


All times are GMT -5. The time now is 12:46 AM.