find which repo an application belongs to

Like in the title.
I installed some apps from external and non-official repos. I need to remove them and their repos. How can I do that?

Let me google that for you
Let me google that for you

Show us your repos

zypper lr -d

If you do to Yast > Software Management > View by Repositories

you should be able to see what you have and if deletion is a wise move…

https://dl.dropbox.com/u/10573557/Software%20Management/SM2.png

https://dl.dropbox.com/u/10573557/Software%20Management/remove_depend.png

On 2012-12-04 14:26, susebh wrote:
>
> Like in the title.
> I installed some apps from external and non-official repos. I need to
> remove them and their repos. How can I do that?

You may glean some info doing queries like these:


rpm -q -a --queryformat "%{INSTALLTIME};%{INSTALLTIME:day}; \
%{BUILDTIME:day}; %{NAME};%{VERSION}-%-7{RELEASE};%{arch}; \
%{VENDOR};%{PACKAGER};%{DISTRIBUTION};%{DISTTAG}
" \
| sort | cut --fields="2-" --delimiter=\; \
| tee rpmlist.csv | less -S

or

rpm -q -a --queryformat "%{INSTALLTIME}	%{INSTALLTIME:day} \
%{BUILDTIME:day} %-30{NAME}	%15{VERSION}-%-7{RELEASE}	%{arch} \
%25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}
" \
| sort | cut --fields="2-" > rpmlist


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

If the number of apps/repos is small, then you might find ‘Yast > Install and Remove…’ the simplest and most transparent way forward. If the number is closer to 200 than 2, the something with zypper is probably going to consume less of your time.

Anyway, in ‘Install and Remove Software’, search for the name of the software that you want to manipulate, and have a look at the ‘versions’ tab; you should be able to see which repo the installed software is from, and which other versions would be available from other repos that you already have enabled, if you remove that repo.

(If, in some way, the versions available from other repos are not satisfactory, you might want to look at other repos to see if ‘better’ versions are available. On the other hand, maybe you have lost interest in these software packages altogether, and then you don’t have to re-install them at all.)

When you have checked that for all of the software items individually, you can make informed decisions, remove the software, remove the spurious repos and re-install, if that’s what you want to do.

Just in case, I wouldn’t be removing spurious repos immediately - I would disable them. If any surprise packages suddenly turn red, that is a clue that you have overlooked some packages.

I’m sure that there is a way through this using nothing other than zypper, and that would be the first choice if the number of packages is large or very large, you’ll have to ask someone else about that! Install and remove software gives you nice, easy, feedback on your current situation and what is going on, so I would rather rely on that unless the problem is at the more difficult end of the spectrum.

> I installed some apps from external and non-official repos. I need to
> remove them and their repos. How can I do that?

how did you install them? (rpm command, with YaST or zypper? or were
they .bin files, or did you compile from source, or or or or)

what operating system are you running? what version?

what desktop environment? version?


dd

To answer the question from the title, where Opera is my example

zypper info opera

How can i make the above command show me url also. It shows only alias name if i run it


$:~> zypper info opera
Information for package opera:

Repository: openSUSE-12.2-Update
Name: opera
Version: 12.10-12.1
Arch: x86_64
Vendor: openSUSE
Installed: Yes
Status: up-to-date
Installed Size: 42.6 MiB
Summary: Opera Web Browser (12.10 build 1652)
Description: 
Opera is user-friendly, secure, and exceptionally fast.

On 12/04/2012 08:36 PM, vazhavandan wrote:
> How can i make the above command show me url also. It shows only alias
> name if i run it

once you know “Repository: openSUSE-12.2-Update” then use


zypper lr -d

which will give all details of the repos you have enabled, or not…


dd

oh ,ok. i thought “info” would have more options

On 12/04/2012 10:06 PM, vazhavandan wrote:
> oh ,ok. i thought “info” would have more options

it does, find them all in ‘man zypper’


dd

Thank you! :wink: