Results 1 to 7 of 7

Thread: Find packages which depends from a certain repository

  1. #1

    Default Find packages which depends from a certain repository

    Hi all! Is there any command to know all packages that depends from a repository? Because i would like to know if i can remove any repository which doesn't has dependencies.... Thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,099
    Blog Entries
    15

    Default Re: Find packages which depends from a certain repository

    Quote Originally Posted by Quiquoqua48 View Post
    Hi all! Is there any command to know all packages that depends from a repository? Because i would like to know if i can remove any repository which doesn't has dependencies.... Thanks
    Hi
    Probably not without some work

    If you disable a repository then the packages from there will be classed as @System, you can create a list to see where packages are from?

    Code:
    zypper se -si
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    1,754

    Default Re: Find packages which depends from a certain repository

    Quote Originally Posted by malcolmlewis View Post
    Code:
    zypper se -si
    I use a script zypseo that remembers to make output more directed to what zypper and my brain can actually deal with:
    Code:
    zypper --no-refresh se -si | grep 'tem Pac' | grep -v plication
    IME zypper won't add or remove an "application", so I always ignore their mention.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 42.3,TW,15.0 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&42.3 on 965P/Radeon
    Tertiary: TW,15.0,42.3,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  4. #4

    Default Re: Find packages which depends from a certain repository

    Thanks! I used:
    HTML Code:
    zypper se -si |grep REPOSITORY-NAME
    for each repository i would like to remove, so if i have not seen any corresponding app i've deleted that repo.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,378
    Blog Entries
    2

    Default Re: Find packages which depends from a certain repository

    I think you're actually asking for list of installed packages from a particular repo, no further qualification like "dependencies."

    If so,
    Then the following command is probably more elegant and efficient... Note that the repo name must be exact and does not support RegEx
    Code:
    zypper pa -ir repo_name
    If you're really looking for a dependency list which would likely involve the applications the packages support, that would require some work... I haven't looked closely at the command proposed by @mrmazda to verify whether that is done.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,064

    Default Re: Find packages which depends from a certain repository

    Quote Originally Posted by Quiquoqua48 View Post
    Hi all! Is there any command to know all packages that depends from a repository? Because i would like to know if i can remove any repository which doesn't has dependencies.... Thanks
    Try the following:

    Code:
    erlangen:~ # zypper se -sir download.opensuse.org-tumbleweed
    Loading repository data...
    Reading installed packages...
    
    S  | Name                    | Type    | Version    | Arch   | Repository                     
    ---+-------------------------+---------+------------+--------+--------------------------------
    i  | gmenudbusmenuproxy      | package | 5.17.0-4.1 | x86_64 | Hauptaktualisierungs-Repository
    i+ | plasma5-session         | package | 5.17.0-4.1 | noarch | Hauptaktualisierungs-Repository
    i  | plasma5-session-wayland | package | 5.17.0-4.1 | noarch | Hauptaktualisierungs-Repository
    i+ | plasma5-workspace       | package | 5.17.0-4.1 | x86_64 | Hauptaktualisierungs-Repository
    i  | plasma5-workspace-lang  | package | 5.17.0-4.1 | noarch | Hauptaktualisierungs-Repository
    i+ | plasma5-workspace-libs  | package | 5.17.0-4.1 | x86_64 | Hauptaktualisierungs-Repository
    i  | xembedsniproxy          | package | 5.17.0-4.1 | x86_64 | Hauptaktualisierungs-Repository
    erlangen:~ #
    Watch for identical URIs in list:

    Code:
    erlangen:~ # zypper lr -uEP
    #  | Alias                            | Name                            | Enabled | GPG Check | Refresh | Priority | URI                                                                              
    ---+----------------------------------+---------------------------------+---------+-----------+---------+----------+----------------------------------------------------------------------------------
     3 | Packman                          | Packman                         | Yes     | (r ) Yes  | Yes     |   90     | http://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/                              
     5 | download.opensuse.org-non-oss    | Haupt-Repository (NON-OSS)      | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/non-oss/                            
     6 | download.opensuse.org-oss        | Haupt-Repository (OSS)          | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/oss/                                
     7 | download.opensuse.org-tumbleweed | Hauptaktualisierungs-Repository | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/tumbleweed/                                  
    19 | spotify-easyrpm                  | spotify-easyrpm                 | Yes     | (  ) No   | Yes     |   99     | dir:/var/cache/spotify-easyrpm                                                   
    21 | zulu                             | zulu                            | Yes     | (r ) Yes  | Yes     |   99     | http://repos.azulsystems.com/sles/latest                                         
     1 | Application_Geo                  | Application_Geo                 | Yes     | (r ) Yes  | Yes     |  100     | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Tumbleweed/  
     2 | Google-Chrome                    | Google-Chrome                   | Yes     | (r ) Yes  | Yes     |  100     | http://dl.google.com/linux/chrome/rpm/stable/x86_64                              
     9 | home:Herbster0815                | home:Herbster0815               | Yes     | (r ) Yes  | Yes     |  100     | http://download.opensuse.org/repositories/home:/Herbster0815/openSUSE_Tumbleweed/
    11 | home_seife_testing               | testing (openSUSE_Factory)      | Yes     | (r ) Yes  | Yes     |  100     | http://download.opensuse.org/repositories/home:/seife:/testing/openSUSE_Factory/ 
    14 | jalbum                           | jalbum                          | Yes     | (  ) No   | Yes     |  100     | http://jalbum.net/download/software/yumrepo/                                     
    15 | myrepo                           | myrepo                          | Yes     | (  ) No   | Yes     |  100     | dir:/home/karl/Downloads/myrepo                                                  
    16 | opensuse-guide.org               | libdvdcss repository            | Yes     | (r ) Yes  | Yes     |  100     | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/                              
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), openSUSE Tumbleweed, KDE Plasma 5

  7. #7
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,018

    Default AW: Find packages which depends from a certain repository

    If the Repo is active use:
    Code:
    zypper se -sir REPONAME
    That lists all installed packages from the Repo REPONAME.

Posting Permissions

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