LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ubuntu: where are new files installed by using apt-get (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-where-are-new-files-installed-by-using-apt-get-776704/)

oakhill 12-18-2009 10:41 AM

Ubuntu: where are new files installed by using apt-get
 
I use apt-get to install software in Ubuntu 9.04.

However, it does not show where are the new files?

How can I figure out where are those new installed files?

Following is the output, only show it installed, but I want to know what are the new files installed in hard drive, where are they?

Thanks!

$ sudo apt-get install valgrind
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libc6-dbg kcachegrind alleyoop
The following NEW packages will be installed:
valgrind
0 upgraded, 1 newly installed, 0 to remove and 259 not upgraded.
Need to get 23.5MB of archives.
After this operation, 58.5MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com jaunty/main valgrind 1:3.4.1-1ubuntu1 [23.5MB]
Fetched 23.5MB in 7min 42s (50.7kB/s)
Selecting previously deselected package valgrind.
(Reading database ... 105704 files and directories currently installed.)
Unpacking valgrind (from .../valgrind_1%3a3.4.1-1ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up valgrind (1:3.4.1-1ubuntu1) ...

pljvaldez 12-18-2009 11:04 AM

Most things get installed to /usr/bin or /usr/sbin. Some main packages get installed to /bin or /sbin.

Or you can see what is in a package by downloading and using apt-file.

dreamwalking 12-18-2009 11:05 AM

I think /usr/lib contains the libraries of the installed packages, while /usr/bin contains the binaries.

Then in /lib and /bin are, respectively, the libraries and binaries of the essential packages for the system to (boot? perform minimally? not sure on this).

knudfl 12-18-2009 01:05 PM

The command

dpkg -L <package-name>

will show the files + locations.

brianL 12-18-2009 03:03 PM

This tells you where everything usually goes:

http://tldp.org/LDP/Linux-Filesystem...tml/index.html

David the H. 12-18-2009 03:24 PM

You can also use the apt-file program, which will also show you the files in packages that aren't yet installed.

quinreis 12-19-2009 01:31 AM

If you are a newbie, you are probably using Synaptic to install software.
Open synaptic, and go to the settings > preferences menu.
Check the box that says "Show package properties in main window."
Now search for the package that you just installed.
When you select the package, look at the tab called "Installed Files"
By the way, all downloaded packages are stored in /var/cache/apt/archives/


All times are GMT -5. The time now is 09:34 PM.