How can I check if there are any programs using a package repo that I added?

Asked by Eddie Padilla

I was wondering if there was a command with either aptitude or dpkg or even synaptic package manager to check if there are any applications installed under a package repository that I had added a long time ago. That way, if it showed there were none I could safely remove the repo without worrying about updates to programs that might be installed with it.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Eddie Padilla
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo apt-get update; apt-cache policy packagename

packaename will need to be replaced by the package you expect to get from the repo

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Even if you remove the repo and the package doesn't get updated it doesn't matter, the later versions should backport to allow the app to still run, it just won't get updated.

Revision history for this message
Eddie Padilla (eddie-no) said :
#3

Thanks that does help me with another problem I was having, but I guess I didn't word my original question right. My current problem is that I don't know what applications I did, or have installed with the GetDeb software repo.

So I guess, to restate my question, how would I check to see if there's any software installed that depends on the GetDeb repo?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

some have getdeb in the name. I installed a game from getdeb but its not got the usual text.

try:

dpkg -l | grep get

you could also try:

history | grep dpkg

if you used CLI to install it.

Revision history for this message
Eddie Padilla (eddie-no) said :
#5

Found out how to do it, in Synaptic package manager you click on the bottom left button that says "Origin" and select your source and scroll through the list and check if there's any software installed. Thanks for all the help guys, I would still appreciate it if someone could inform me of how to do it with the CLI, it helps out when you don't have a GUI to fall back to.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Glad you got the gold and nice share too :)

Hopefully this will help others wanting the same thing.