Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-18-2009, 11:41 AM   #1
LQ Newbie
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
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?


$ 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:
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 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) ...
Old 12-18-2009, 12:04 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
Old 12-18-2009, 12:05 PM   #3
Registered: Dec 2005
Distribution: Slackware 14
Posts: 106

Rep: Reputation: 29
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).
Old 12-18-2009, 02:05 PM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 15,918

Rep: Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025Reputation: 3025
The command

dpkg -L <package-name>

will show the files + locations.
Old 12-18-2009, 04:03 PM   #5
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
This tells you where everything usually goes:
Old 12-18-2009, 04:24 PM   #6
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954
You can also use the apt-file program, which will also show you the files in packages that aren't yet installed.
Old 12-19-2009, 02:31 AM   #7
LQ Newbie
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
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/


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
OpenSSL installed manually, but apt-get still wants to install it [Ubuntu 9.04] you-bunt-too? Linux - Newbie 2 08-29-2009 03:03 PM
Ubuntu Installed Without Network Connection: Apt and Synaptic Don't Work Peatmoss Ubuntu 5 10-10-2008 12:10 AM
howto search installed files from packaged via apt? reakinator Ubuntu 3 06-09-2008 01:47 AM
Installed usplash now apt-get broken (ubuntu drapper) dfwcomputer Ubuntu 1 09-21-2006 05:24 PM
Can APT show me list of files for not-installed pkgs? johnMG Debian 11 04-14-2004 03:59 PM

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration