Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu 12.04 . I want to know how can we find out about a Package installation origin . I mean is it installed with apt-get or aptitude or externally or installed with Ubuntu . Is there any way ?

share|improve this question
Possible duplicates:… and… – jasmines Jul 17 '12 at 13:31
@jasmines No they are saying about PPA's and all . i just want what type of install it is . – Raja Jul 17 '12 at 13:39
You could find out WHEN a package was installed, or listing the packages installed by Synaptic, as you can read here: – jasmines Jul 17 '12 at 14:03
@jasmines thats gave me well – Raja Jul 17 '12 at 16:03
up vote 2 down vote accepted

You could look in /var/log/apt/history.log, though you'd need to possibly check the archives as well.

It appears that synaptic and apt-get give the method

Start-Date: 2012-07-17  11:47:00
**Commandline: apt-get install** unetbootin
Install: unetbootin-translations:amd64 (575-1, automatic), extlinux:amd64 (4.05+dfsg-6, automatic), syslinux-themes-debian:amd64 (11-1, automatic), syslinux-themes-debian-wheezy:amd64 (11-1, automatic), unetbootin:amd64 (575-1), p7zip-full:amd64 (9.20.1~dfsg.1-4, automatic)
End-Date: 2012-07-17  11:47:18

Start-Date: 2012-07-17  11:57:51
**Commandline: /usr/sbin/synaptic**
Install: libunity-protocol-private0:amd64 (5.92.0-0ubuntu1, automatic)
Upgrade: libunity9:amd64 (5.12.0-0ubuntu2, 5.92.0-0ubuntu1), gir1.2-unity-5.0:amd64 (5.12.0-0ubuntu2, 5.92.0-0ubuntu1)
End-Date: 2012-07-17  11:58:09

Aptitude appears though to not show how

Start-Date: 2012-07-17  15:11:45
Install: 2ping:amd64 (2.0-1)
End-Date: 2012-07-17  15:11:53
share|improve this answer

$ egrep Origin /var/lib/apt/lists/*Release

share|improve this answer
Could you please elaborate more on your answer? For example to explain what the given command does? This way the answer will be more complete for future reference to similar problems. – Stef K Apr 28 '14 at 8:26

Ubuntu stores all of its packages in locations called software channels or repositories. A software channel is simply a location which holds packages of similar types, which can be downloaded and installed using a package manager. A package manager will store an index of all of the packages available from a software channel. Sometimes it will 're-build' this index to make sure that it is up to date and knows which packages have been upgraded or added into the channel since it last checked.

There are four Ubuntu software channels for each architecture - Main, Restricted, Universe and Multiverse. Each has a different purpose. In addition to the official Ubuntu repositories, it is possible to use third party repositories.Eg Personal Package Archive (PPA)

If you wan to know more about a package you could run this command from the terminal

dpkg -s <package>


dpkg -s firefox

That will return information about the firefox version installed


apt-cache showpkg <package> will show you a list of versions available.

share|improve this answer
apt-cache policy <package> will tell you which repository it's available from. – tumbleweed Jul 23 '12 at 20:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.