Determining where a package will install with apt-get installer
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Determining where a package will install with apt-get installer
Running Debian "sarge" and I have been trying to determine where a package would install if I was to download it with apt-get install or dpkg. I was actually trying to install flashplayer and it kept asking me where my web browser was installed. so, I headed off to dpkg to see where mozilla-firefox was installed and couldnt find anything that made reference to a path. I next tried to google for an answer and finally got on yahoo chat in the Linux room and a user told me to look in the /usr/lib/. He said if I did not find it there, I might look in /usr/local. I found it in the /usr/lib/mozilla-firefox. I finally got flashplayer installed but if I had not found someone that could tell me where the directory was I would have never been able to install flashplayer.
Is there a way that you can tell where a package will install and if its already installed, how can you tell where its located within Debian. I purchased a book called Debian GNU/Linux and have searched the web high and low and have been unable to find this information.
I found the web browser install in /usr/lib and went a head and installed flashplayer directly into that path. I didnt go all the way down to /usr/lib/mozilla-firefox/plugins.
How can you tell though what directory a package will install in when you use apt-get or dpkg or do a manual install. Is there something in the file that will tell this path or can you find the path after you actually do the install using apt-get or dpkg?
Normally when I install a package I go to the shell and do su and then the root password and then apt-get install <packagename> and off it goes. Is there a better way?
Last edited by columbiasts1; 08-23-2006 at 08:43 PM.
I appreicate everyone's input but I am still trying to determine where a package would install when I pull it down or manully install it. Is there a file in the package that I can look at or can I use a utility that will tell me where a package is going to install within Debian?
I am still trying to determine where a package would install when I pull it down or manully install it.
It depends on what package it is. One thing you can count on ... APT will put it where it belongs according to the FHS. If you want to know where it installed a package, ... $ whereis packagename.
As far as the flash plugin goes, my experience is that it installs automatically, but like all informed hobbyists, I use Etch. I'm sure HappyTux's suggestion will work. If you can't do it right, tho, unpack the file you dl'd from Macromedia, then navigate down to a plugins directory in .mozilla, and put the files from the Macromedia package in it.
Of course that will only work for a 32-bit system.
I appreicate everyone's input but I am still trying to determine where a package would install when I pull it down or manully install it. Is there a file in the package that I can look at or can I use a utility that will tell me where a package is going to install within Debian?
For packages not installed you need to use the apt-file package. Once installed apt-file update as root then as normal user you can use any of the other options which for your purposes would be apt-file list package_name this would show you every file in the package and the path to where they would be installed eg.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.