LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-18-2011, 09:45 PM   #1
dewdrop_world
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.04, 2.6.33-29-realtime
Posts: 26

Rep: Reputation: 1
(Ubuntu 10.04) How to find source of an installed apt package?


How do I find which "software source" provided a package that I installed?

Some weeks ago, I installed linux-realtime. A collaborator is trying to mirror my setup and looked for that package, but it isn't in the default software sources. So, I need to tell him where I got it.

Thanks,
James
 
Old 01-18-2011, 10:14 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
It depends where you got the .deb. If it's part of the ubuntu repositories, you should go into the software sources tool, and make sure the "source" repos are enabled. Then it's just a matter of doing

Code:
apt-get source packagename
However, if you added a custom repository for the game, there may or may not be source available depending on the repository, license and so on.
 
Old 01-18-2011, 10:17 PM   #3
decodedthought
Member
 
Registered: Oct 2007
Location: California,USA
Distribution: Archlinux
Posts: 195

Rep: Reputation: 20
use this to search the software source for a package.
otherwise you could give him your sourcelist
Code:
# gedit /etc/apt/sources.list
copy the whole list and paste in a new text file.
 
Old 01-19-2011, 04:25 AM   #4
dewdrop_world
LQ Newbie
 
Registered: Jan 2011
Distribution: Ubuntu 10.04, 2.6.33-29-realtime
Posts: 26

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by decodedthought View Post
use this to search the software source for a package.
otherwise you could give him your sourcelist
Code:
# gedit /etc/apt/sources.list
copy the whole list and paste in a new text file.
If it's in a PPA? packages.ubuntu.com seems not to search them.

This seems a rather basic function - "Oh, I have that installed? Where did I get it from? I forget." I find it surprising that the local apt utilities don't have a way to handle that.

@Matthew: By source, I meant the package repository from which the package was downloaded, not source code.

James
 
Old 01-19-2011, 04:45 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Quote:
Originally Posted by dewdrop_world View Post
@Matthew: By source, I meant the package repository from which the package was downloaded, not source code.
Oh I see! Well you can use apt-cache to get info about that:
Code:
apt-cache show stellarium |grep ^Filename
which will output something like:
[pre]Filename: pool/universe/s/stellarium/stellarium_0.10.5-0ubuntu1_i386.deb[/pre]

apt-cache showsrc packagename might also be interesting to you.
 
  


Reply


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
last package installed using apt-get cymkhat Linux - Desktop 1 04-07-2009 10:03 AM
knowing whether a package is installed or not using apt tool matrix13 Linux - Software 2 02-12-2009 04:57 AM
apt-get error. Could not find package deostroll Ubuntu 11 01-13-2008 05:19 AM
apt-get how to cancel partially installed kernel package? zeigerpuppy Debian 1 01-15-2006 10:40 AM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 07:12 PM


All times are GMT -5. The time now is 07:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration