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
installed with Ubuntu . Is there any way ?
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
Aptitude appears though to not show how
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) https://help.ubuntu.com/community/InstallingSoftware
If you wan to know more about a package you could run this command from the terminal
That will return information about the firefox version installed