LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Linux File System. Can't find Installed pkg. (http://www.linuxquestions.org/questions/slackware-14/linux-file-system-cant-find-installed-pkg-4175447310/)

Ace Blackwell 01-26-2013 09:49 AM

Linux File System. Can't find Installed pkg.
 
Guys,

I've been with Linux for 3-4 years and love it. Mainly a Slacker.

Anywhoo, I kept installing packages from SlackBuilds. But unless the bin file has the same name (IE mame) then I can't get the new installation to activate and I then can't find the file location to find what the bin file would be called. (IE advancemame)

So my question. When installing from installpkg, where do the files go? I've looked in usr/bin and //bin. No luck. I know there are sbin directories too that I'll wade through but I don't hold out a lot of hope for any results. And the Dolphin Find function is rarely of any benefit.

Thanks in advance
Ace

ukiuki 01-26-2013 11:01 AM

I know the feeling, for example the gnome-disk-utility package in Debian become palimpsest after installed.
You are looking at the right places, in some distros the binaries sometimes goes in different directories thou,
but the most used ones are: /bin , /sbin , /usr/bin , /opt , there is also some other possible places but depends
on what kind of setup is been used. If you have the program running in another machine you can check the processes
to find out the binary name.
Also commands like whereis and locate can help you find what you looking for.

Regards

Didier Spaier 01-26-2013 11:36 AM

To see which files a package has installed use either one of those two ways:
(1) run 'pkgtool' as root and select 'View' in the menu.
(2) type:
Code:

less /var/log/package/<package name>
In addition, it is possible that a doinst.sh file write some symlinks and/or configuration files. To check:
Code:

less /var/log/scripts/<package name>
PS the file FAQ.TXT in the root of a Slackware media has the answer as well (see Q. 22, and note that /var/adm is a symlink to /var/log).

Stephen Morgan 01-26-2013 03:02 PM

As Didier says, the files in /var/log/packages contain a list of all files installed by a package. If you know what the binary is called you can find it with the `which` command. If you want to trawl though all the dirs it might be in, the $PATH variable will tell you which directories bash checks for executables when you type in a command.

Didier Spaier 01-26-2013 03:12 PM

Conversely, if you want to know which package installed a given file, type :
Code:

grep path/to/the/file /var/log/{packages,scripts}*
For instance :
Code:

bash-4.2$ grep usr/bin/pic2tpic /var/log/{packages,scripts}/*
/var/log/packages/transfig-3.2.4-i486-3:usr/bin/pic2tpic
bash-4.2$

Tip: omit the first slash (/) from the path otherwise it won't be found.

TobiSGD 01-26-2013 05:45 PM

Quote:

Originally Posted by Didier Spaier (Post 4878153)
Conversely, if you want to know which package installed a given file, type :
Code:

grep path/to/the/file /var/log/{packages,scripts}*
For instance :
Code:

bash-4.2$ grep usr/bin/pic2tpic /var/log/{packages,scripts}/*
/var/log/packages/transfig-3.2.4-i486-3:usr/bin/pic2tpic
bash-4.2$

Tip: omit the first slash (/) from the path otherwise it it won't be found.

Or you just use slackpkg with the file-search option instead, like
Code:

tobi ~ ☺ $ slackpkg file-search mcedit

Looking for mcedit in package list. Please wait... DONE

The list below shows the packages that contains "mcedit" file.

[ installed ] - mc-4.8.4-i486-2

You can search specific packages using "slackpkg search package".

Keep in mind that this works only with packages from the Slackware repo.

XGizzmo 01-27-2013 12:08 AM

The package is just a tarball, you can look in the package by default in /tmp for SBo. tar -tvf /tmp/<package>


All times are GMT -5. The time now is 03:59 AM.