0

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

1

1 Answer 1

0

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"

2
  • 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? May 7, 2017 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, 2017 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .