1

I have several repositories listed in my source list and some ppa added as sources

Can I know from which one specific package has been installed?

It is still possible if after installation repository was removed from source list?

kakabomba
  • 113
  • 4
  • Thanks, partially yes. Unfortunately i can't find information how to proceed if ppa was purged from system – kakabomba Jul 10 '15 at 00:01
  • @kakabomba Then you'd probably want to re-add this PPA and purge it correctly so it also remove the packages it installed. Next time you could start asking your real question. http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem – xangua Jul 10 '15 at 00:11
  • @xangua How can I re-add PPA if i don't know which one? – kakabomba Jul 10 '15 at 00:49
  • "I have several repositories listed in my source list and some ppa added as sources" You can start by detailing which repositories you added/removed, please consider EDIT your question. – xangua Jul 10 '15 at 01:48

1 Answers1

1

Using apt-cache:

apt-cache policy <your_package_name>

After the removal of the repository, you can't access this information.


Example

% apt-cache policy atom
atom:
  Installed: (none)
  Candidate: 1.0.0-1~webupd8~0
  Version table:
     1.0.0-1~webupd8~0 0
        500 http://ppa.launchpad.net/webupd8team/atom/ubuntu/ vivid/main i386 Packages

% sudo rm /etc/apt/sources.list.d/webupd8team-ubuntu-atom-vivid.list
% sudo apt-get update

% apt-cache policy atom                                              
N: Unable to locate package atom
Fabby
  • 34,259
A.B.
  • 90,397