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

Hi
Probably not without some work :wink:

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?


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:

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.

Thanks! I used:

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.

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

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

Try the following:

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:

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:~ # 

If the Repo is active use:

zypper se -sir REPONAME

That lists all installed packages from the Repo REPONAME.