Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: find which repo an application belongs to

  1. #1
    Join Date
    Oct 2012
    Location
    I'm living right here!
    Posts
    69

    Default 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?

  2. #2

    Default Re: find which repo an application belongs to


  3. #3
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: find which repo an application belongs to

    Show us your repos
    Code:
    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/So...gement/SM2.png

    https://dl.dropbox.com/u/10573557/So...ove_depend.png
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: find which repo an application belongs to

    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:

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



    --
    Cheers / Saludos,

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

  5. #5

    Default Re: find which repo an application belongs to

    Quote Originally Posted by susebh View Post
    ...

    I need to remove them and their repos. How can I do that?
    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.

  6. #6
    dd NNTP User

    Default Re: find which repo an application belongs to

    > 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

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,037
    Blog Entries
    14

    Default Re: find which repo an application belongs to

    To answer the question from the title, where Opera is my example
    Code:
    zypper info opera
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: find which repo an application belongs to

    Quote Originally Posted by Knurpht View Post
    To answer the question from the title, where Opera is my example
    Code:
    zypper info opera
    How can i make the above command show me url also. It shows only alias name if i run it
    Code:
    $:~> 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.
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  9. #9
    dd NNTP User

    Default Re: find which repo an application belongs to

    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

    Code:
    zypper lr -d
    which will give all details of the repos you have enabled, or not..

    --
    dd

  10. #10
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: find which repo an application belongs to

    Quote Originally Posted by dd View Post
    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

    Code:
    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
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •