command to know which repository a package come from

Asked by Hanusz leszek

Is there a command to know from which repository a package installed on your system come from ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Roshan Shariff
Solved:
Last query:
Last reply:
Revision history for this message
Best Roshan Shariff (roshan.shariff) said :
#1

Try apt-cache madison <pkg>. It produces output like this:

$ apt-cache madison gedit
gedit | 2.18.1-0ubuntu1 | http://archive.ubuntu.com feisty/main Packages
gedit | 2.18.1-0ubuntu1 | http://archive.ubuntu.com feisty/main Sources

This shows that gedit (and its source code) is available in main.

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#2

Thanks Roshan Shariff, that solved my question.