please your help on the following issue.

I understand that the file /etc/apt/sources.list controls repositories from which APT constructs its database. This file contains lines in the following format:

deb location-of-resources distribution component(s)
For example in my system:

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://httpredir.debian.org/debian/ jessie main contrib non-free

I want to know which programs on my system are related to the Linux distribution jessie, is there any command line or any other way to do so?

Thanks for your answers


You can use aptitude to search which packages are installed from which repo:

foo@test:~$ aptitude search "?origin (opensuse) ?installed"
i A libowncloudsync0                                               - the ownCloud sync library                                                
i A libqt5keychain1                                                - Cross platform password store library                                    
i   owncloud-client                                                - The ownCloud sync client - github.com/owncloud/client                    
i A owncloud-client-l10n                                           - Internationalization files for ownCloud

so for your example you can try: aptitude search "?origin (jessie) ?installed"

  • I tried the command with my arguments, it runs prompting no error, in fact, prompting nothing on terminal-command. I tried it with kali-rolling and nothing too. Any suggestions? – blinkomaniak May 7 '17 at 20:30
  • are you sure you have any packages installed from kali-rolling? can you explicitly install a package provided by that repo and then try again? – madmaze May 13 '17 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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