LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-23-2006, 08:10 PM   #1
columbiasts1
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian stable
Posts: 29

Rep: Reputation: 15
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.
 
Old 08-23-2006, 08:21 PM   #2
kaz2100
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,832

Rep: Reputation: 108Reputation: 108
I do not remember exact place, however, it was something like local/mozilla/plugins
 
Old 08-23-2006, 08:40 PM   #3
columbiasts1
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian stable
Posts: 29

Original Poster
Rep: Reputation: 15
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.
 
Old 08-23-2006, 09:01 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 08-24-2006, 01:01 PM   #5
columbiasts1
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian stable
Posts: 29

Original Poster
Rep: Reputation: 15
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?
 
Old 08-24-2006, 01:35 PM   #6
rickh
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: Reputation: 62
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.
 
Old 08-24-2006, 02:32 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
  


Reply

Tags
debian, location, package



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
How do I install apt-get without package program or devel tools? joshfields Linux - Software 2 06-05-2006 04:36 PM
apt-pinning does not obey to Not install the package kushalkoolwal Debian 11 05-16-2006 03:39 AM
apt-get install Java, what's right package name? MOCKBA Ubuntu 1 01-16-2006 06:59 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM
apt wont install a single package craigdolson Debian 3 12-16-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:50 AM.

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