How to check which programs are related to a distribution of a specific repository

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

blinkomaniak

Posted 2017-05-06T19:17:08.947

Reputation: 1

Take a look at Kalli Linux Official Documentation

– yass – 2017-05-06T19:25:15.413

Answers

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"

madmaze

Posted 2017-05-06T19:17:08.947

Reputation: 3 447

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 – 2017-05-07T20:30:22.583

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 – 2017-05-13T16:23:40.670