Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

The directories that related to a executable file.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

The directories that related to a executable file.

#1 Post by hack3rcon »

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

Thank you.

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: The directories that related to a executable file.

#2 Post by LE_746F6D617A7A69 »

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: The directories that related to a executable file.

#3 Post by p.H »

That says where the program is installed, not what directories it creates.

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: The directories that related to a executable file.

#4 Post by LE_746F6D617A7A69 »

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

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: The directories that related to a executable file.

#5 Post by cuckooflew »

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-fin ... x-command/

Code: Select all

find  / -name "apt" -ls 
====
Another:https://www.tecmint.com/list-files-inst ... -in-linux/

Code: Select all

$ dpkg -L apache2 
++++++++
https://www.debian.org/doc/manuals/debi ... h_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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: The directories that related to a executable file.

#6 Post by cuckooflew »

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/amd6 ... t/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
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

Post Reply