Debian This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-23-2006, 08:10 PM
|
#1
|
LQ Newbie
Registered: Aug 2006
Distribution: Debian stable
Posts: 29
Rep:
|
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.
|
|
|
08-23-2006, 08:21 PM
|
#2
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,849
Rep: 
|
I do not remember exact place, however, it was something like local/mozilla/plugins
|
|
|
08-23-2006, 08:40 PM
|
#3
|
LQ Newbie
Registered: Aug 2006
Distribution: Debian stable
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
08-23-2006, 09:01 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Make sure you have contrib in the line you use in the sources.list and apt-get update if you did not then apt-get install flashplugin-nonfree.
Code:
deb http://ftp2.de.debian.org/debian/ sarge main contrib non-free
|
|
|
08-24-2006, 01:01 PM
|
#5
|
LQ Newbie
Registered: Aug 2006
Distribution: Debian stable
Posts: 29
Original Poster
Rep:
|
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?
|
|
|
08-24-2006, 01:35 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
Quote:
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.
|
|
|
08-24-2006, 02:32 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by columbiasts1
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.
Code:
>$ apt-file list apt-file
apt-file: etc/apt/apt-file.conf
apt-file: etc/bash_completion.d/apt-file
apt-file: usr/bin/apt-file
apt-file: usr/share/doc/apt-file/README
apt-file: usr/share/doc/apt-file/TODO
apt-file: usr/share/doc/apt-file/changelog.gz
apt-file: usr/share/doc/apt-file/copyright
apt-file: usr/share/man/man1/apt-file.1.gz
If the package is already installed then dpkg -L package_name will show you where everything was installed too.
Code:
>$ dpkg -L apt-file
/.
/usr
/usr/bin
/usr/bin/apt-file
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/apt-file.1.gz
/usr/share/doc
/usr/share/doc/apt-file
/usr/share/doc/apt-file/README
/usr/share/doc/apt-file/TODO
/usr/share/doc/apt-file/copyright
/usr/share/doc/apt-file/changelog.gz
/etc
/etc/apt
/etc/apt/apt-file.conf
/etc/bash_completion.d
/etc/bash_completion.d/apt-file
|
|
|
All times are GMT -5. The time now is 12:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|