The directories that related to a executable file.

New to Debian (Or Linux in general)? Ask your questions here!

The directories that related to a executable file.

Postby hack3rcon » 2020-07-18 09:10

Hello,
I installed a program and I want to know which directories created by that program.
Any idea?

Thank you.
hack3rcon
 
Posts: 394
Joined: 2015-02-16 09:54

Re: The directories that related to a executable file.

Postby LE_746F6D617A7A69 » 2020-07-18 10:36

It depends how did You installed the program...
If from a deb package:
1. The easiest way: Synaptic->RMB->Package_Properties->Installed_Files
2. Unpack the package and check the directory structures -> they are merged with the root file system
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 280
Joined: 2020-05-03 14:16

Re: The directories that related to a executable file.

Postby p.H » 2020-07-19 10:49

That says where the program is installed, not what directories it creates.
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

Re: The directories that related to a executable file.

Postby LE_746F6D617A7A69 » 2020-07-19 13:52

IMO it's not clear what the OP is asking for, for Me it sounds like "what directories were created by the installation process?"

But if the question is: "what directories are created when the program is executed?" then there's no simple answer - this entirely depends on the program and on its configuration -> what in turn means, that it depends on user preferences.

One of possible solutions is to search for hard-coded paths within the program code, f.e.:
Code: Select all
strings /usr/bin/sudo | grep /
but then You have to search for non-standard directories in a list of strings - and the list can be very long...
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed
LE_746F6D617A7A69
 
Posts: 280
Joined: 2020-05-03 14:16

Re: The directories that related to a executable file.

Postby cuckooflew » 2020-07-19 15:31

not clear what the OP is asking for

Exactly, ,
by hack3rcon » 2020-07-18 09:10
Hello,
I installed a program and I want to know which directories created by that program.

What program,?
==========edit==========
Apart from not being clear, the way I interpret this is that they (OP) want to see the directories and files, created when the package is installed, WHY ? not sure they don't say, but I am guessing maybe they want to modify something and can not find it, or are not sure that the program even installed, who knows ? It is interesting to me, because sometimes when I install a new program/package, indeed it can be difficult to 'find' or 'locate' all the files related to that package. Sometimes, the 'man <package-name>' is of use. After all said and done, my answer is : There are various ways to locate various files and directories, one just needs to "search", but google is not the only search method, To search the system, and use the various commands available, or tools, eg: synaptic package manager, 'man synaptic'
apt and aptitude. Same, 'man'
Then of course if one can not remember commands (like me) , a online search engine is your helper, @OP note my key words here:
Code: Select all
command to list the directories and files created when a linux package is installed

A example:https://www.cyberciti.biz/faq/howto-find-a-directory-linux-command/
Code: Select all
find  / -name "apt" -ls

====
Another:https://www.tecmint.com/list-files-installed-from-rpm-deb-package-in-linux/
Code: Select all
$ dpkg -L apache2

++++++++
https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_search_method_options_with_aptitude
Is very detailed, the OP or anyone else should read it , if they use aptitude,
There are more methods mentioned in the search results, some have examples.
===================== edit 2 ------------------------------------
https://wiki.debian.org/apt-file
The OP might find it usefull
Last edited by cuckooflew on 2020-07-19 18:31, edited 1 time in total.
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west

Re: The directories that related to a executable file.

Postby cuckooflew » 2020-07-19 18:21

Then, there is this:Step 1 https://packages.debian.org/stable/
===========================================
step 2 Select the package you want to know about EG: IN Administration Utilities
I want to see what directories and files this :
9mount (1.3+hg20170412-1)
Plan 9 filesystem (v9fs) user mount utilities

So click the package name, and it takes you to step 3
Step 3: https://packages.debian.org/stable/admin/9mount
Down at the bottom, look for your architecture, and on the right there is
a links to :https://packages.debian.org/buster/amd64/9mount/filelist
You will see the list:
File list of package 9mount in buster of architecture amd64

/usr/bin/9bind
/usr/bin/9mount
/usr/bin/9umount
/usr/share/doc/9mount/changelog.Debian.gz
/usr/share/doc/9mount/changelog.gz
/usr/share/doc/9mount/copyright
/usr/share/lintian/overrides/9mount
/usr/share/man/man1/9bind.1.gz
/usr/share/man/man1/9mount.1.gz
/usr/share/man/man1/9umount.1.gz


There you go, .....
Please Read What we expect you have already Done
Google knows a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 547
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable