LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-26-2013, 10:49 AM   #1
Ace Blackwell
Member
 
Registered: Mar 2004
Location: Kentucky, USA
Distribution: SlamD 12.1 / Slack 12.0 ~ 14.0_64
Posts: 284

Rep: Reputation: 30
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
 
Old 01-26-2013, 12:01 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,029

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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
 
Old 01-26-2013, 12:36 PM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,517

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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).

Last edited by Didier Spaier; 01-26-2013 at 12:44 PM. Reason: PS added
 
Old 01-26-2013, 04:02 PM   #4
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 154

Rep: Reputation: 15
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.
 
Old 01-26-2013, 04:12 PM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,517

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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.

Last edited by Didier Spaier; 01-26-2013 at 06:54 PM. Reason: double 'it' corrected
 
Old 01-26-2013, 06:45 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,614
Blog Entries: 2

Rep: Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070Reputation: 4070
Quote:
Originally Posted by Didier Spaier View Post
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.

Last edited by TobiSGD; 01-26-2013 at 06:46 PM.
 
Old 01-27-2013, 01:08 AM   #7
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

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


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
Cataloging and output to *.txt file, Installed pkg's for duplication? dwmolyneux Linux - Virtualization and Cloud 2 05-29-2012 01:51 AM
A script that could figure out whether a file is tracked by slackware pkg system or n grissiom Slackware 4 07-29-2009 12:04 AM
pkg-config can't find installed package JAKK Slackware 16 08-11-2008 10:07 AM
how can I find the file belong to what pkg? jiawj Slackware 9 03-07-2005 09:16 PM
Where is the file:lists all installed pkg's-like 'pkgtool-view'? BearClaw Slackware 2 07-19-2003 11:06 AM


All times are GMT -5. The time now is 06:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration