Zypper: How to list installed packages that are not in a repo

David B.

In a system using Zypper for package management (openSuse, in my case) how can one get a list of all installed packages that are not associated with a currently enabled repository?

Real problem: When upgrading distributions (e.g., from openSuse 12.1 to 12.2), I disable all non-standard repositories that I've enabled. Often, I only added them to get a new version of a particular tool, but that newer version is included by default in the updated distribution. Sometimes though, additional packages were installed from the repository, but I don't know how to detect those. The system works, but those packages will never be updated since I removed the providing repository after the upgrade.

s-m-e

It is a bit about messing around with zypper inquiries.

1) Find installed packages, which come from non-opensuse-distribution-repositories:

zypper search -s | grep "i |" | grep -vi "| patch" | grep -vi "| opensuse" > list1.txt

2) Find packages, which are available from opensuse repositories (no matter whether they are installed or not):

zypper search -s | grep "v |" | grep -vi "| patch" | grep -i "| opensuse" > list2.txt

3) Identify packages from list1, which are not represented in list2:

cat list1.txt | cut -d " " -f3 | cut -d " " -f1 | while read line
do
    if [ "$(cat list2.txt | grep -i $line)" = "" ]; then
        echo "$line"
    fi
done

This should kind of solve the case (tested on openSUSE 11.3).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to reinstall all installed packages with zypper

From Dev

pacman - list installed packages from given repo

From Dev

How to list all installed packages

From Dev

How to list installed go packages

From Dev

How to list all installed packages

From Dev

List all RPM packages installed from repo "X"

From Dev

How to list all packages in a repo by name

From Dev

How can I list all files which have been installed by an ZYpp/Zypper package?

From Java

How to list npm user-installed packages?

From Dev

How to get the list of installed library packages only?

From Dev

How to list all the installed packages and their version with Cabal?

From Dev

How to list user installed applications (not packages)?

From Dev

How to get the list of installed library packages only?

From Dev

How to get the list of installed packages without dependencies?

From Dev

How to list user installed applications (not packages)?

From Dev

How do I list the default installed packages?

From Dev

How to list the packages to be installed by installing a specific package?

From Dev

How to list installed packages manually from backports?

From Dev

How to list installed packages that depend on another installed package in Debian?

From Dev

How to list all packages installed as dependencies in Terminal, and what installed them?

From Dev

List explicitly installed packages

From Dev

Chronological list of installed packages

From Dev

zypper: How to list different available versions of a package?

From Dev

Zypper: How do I display all packages from a certain repository?

From Java

How to get list of all installed packages along with version in composer?

From Dev

How to save Atom editor config and list of packages installed

From Dev

How to list licences of all installed packages in Debian-based distros?

From Dev

how to generate list of installed packages from a full system backup?

From Dev

How to get the list of installed packages vulnerable to remote attack on debian?

Related Related

  1. 1

    How to reinstall all installed packages with zypper

  2. 2

    pacman - list installed packages from given repo

  3. 3

    How to list all installed packages

  4. 4

    How to list installed go packages

  5. 5

    How to list all installed packages

  6. 6

    List all RPM packages installed from repo "X"

  7. 7

    How to list all packages in a repo by name

  8. 8

    How can I list all files which have been installed by an ZYpp/Zypper package?

  9. 9

    How to list npm user-installed packages?

  10. 10

    How to get the list of installed library packages only?

  11. 11

    How to list all the installed packages and their version with Cabal?

  12. 12

    How to list user installed applications (not packages)?

  13. 13

    How to get the list of installed library packages only?

  14. 14

    How to get the list of installed packages without dependencies?

  15. 15

    How to list user installed applications (not packages)?

  16. 16

    How do I list the default installed packages?

  17. 17

    How to list the packages to be installed by installing a specific package?

  18. 18

    How to list installed packages manually from backports?

  19. 19

    How to list installed packages that depend on another installed package in Debian?

  20. 20

    How to list all packages installed as dependencies in Terminal, and what installed them?

  21. 21

    List explicitly installed packages

  22. 22

    Chronological list of installed packages

  23. 23

    zypper: How to list different available versions of a package?

  24. 24

    Zypper: How do I display all packages from a certain repository?

  25. 25

    How to get list of all installed packages along with version in composer?

  26. 26

    How to save Atom editor config and list of packages installed

  27. 27

    How to list licences of all installed packages in Debian-based distros?

  28. 28

    how to generate list of installed packages from a full system backup?

  29. 29

    How to get the list of installed packages vulnerable to remote attack on debian?

HotTag

Archive