• Zypper Info

    As with most commands, you can find more information about the command by typing --help or -h. Below I have shown what --help reveals about the info command in zypper. Info will reveal a lot of useful information. It tells you if it's installed, which repository it's from, the version number, architecture, vendor, the status (such as up-to-date or not), installed size, gives the summary, and description.

    With info you can refine your searches even more. You can specify your search to a given repository, or a specific type (since package is the default type, I don't see why you'd want to use that one), find the requires (dependencies of the package), and what zypper recommends.

    Code:
    zypper info --help
    info (if) [options] <name> ...
    
    Show detailed information for specified packages.
    
      Command options:
    -r, --repo <alias|#|URI>  Work only with the specified repository.
    -t, --type <type>         Type of package (package, patch, pattern, product).
                              Default: package.
        --requires            Show also requires and prerequires.
        --recommends          Show also recommends.

    This is a default search with no options.
    Code:
    zypper info MozillaFirefox
    Loading repository data...
    Reading installed packages...
    
    
    Information for package MozillaFirefox:
    
    Repository: Mozilla Alpha
    Name: MozillaFirefox
    Version: 12.99-7.1
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 38.7 MiB
    Summary: Mozilla Firefox Web Browser
    Description: 
    Mozilla Firefox is a standalone web browser, designed for standards
    compliance and performance.  Its functionality can be enhanced via a
    plethora of extensions.
    This is a search using the repo option and using the alias of the repo.
    Code:
    zypper info -r Mozilla_Factory MozillaFirefox
    Loading repository data...
    Reading installed packages...
    
    
    Information for package MozillaFirefox:
    
    Repository: Mozilla Factory
    Name: MozillaFirefox
    Version: 12.99-7.1
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 38.7 MiB
    Summary: Mozilla Firefox Web Browser
    Description: 
    Mozilla Firefox is a standalone web browser, designed for standards
    compliance and performance.  Its functionality can be enhanced via a
    plethora of extensions.
    Here is another example using repo, but this time I used the number of the repo instead of the alias.
    Code:
    zypper info -r 13 MozillaFirefox
    Loading repository data...
    Reading installed packages...
    
    
    Information for package MozillaFirefox:
    
    Repository: Mozilla Factory
    Name: MozillaFirefox
    Version: 12.99-7.1
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 38.7 MiB
    Summary: Mozilla Firefox Web Browser
    Description: 
    Mozilla Firefox is a standalone web browser, designed for standards
    compliance and performance.  Its functionality can be enhanced via a
    plethora of extensions.
    To find patches I had to use zypper list-patches --all. I then did this example with the name of the patch. I'll write another article covering zypper list-patches.
    Code:
    zypper info -t patch openSUSE-2011-100
    Loading repository data...
    Reading installed packages...
    
    
    Information for patch openSUSE-2011-100:
    
    Name: openSUSE-2011-100
    Version: 1
    Arch: noarch
    Vendor: wrosenauer
    Status: Installed
    Category: security
    Created On: Thu 22 Dec 2011 02:37:49 AM MST
    Reboot Required: No
    Package Manager Restart Required: No
    Interactive: No
    Summary: update for mozilla-nss
    Description: 
    
    - Added a patch to fix errors in the pkcs11n.h header file.
      (bmo#702090)
    
    - update to 3.13.1 RTM
      * better SHA-224 support (bmo#647706)
      * fixed a regression (causing hangs in some situations)
        introduced in 3.13 (bmo#693228)
    - update to 3.13.0 RTM
      * SSL 2.0 is disabled by default
      * A defense against the SSL 3.0 and TLS 1.0 CBC chosen plaintext
        attack demonstrated by Rizzo and Duong (CVE-2011-3389) is
        enabled by default. Set the SSL_CBC_RANDOM_IV SSL option to
        PR_FALSE to disable it.
      * SHA-224 is supported
      * Ported to iOS. (Requires NSPR 4.9.)
      * Added PORT_ErrorToString and PORT_ErrorToName to return the
        error message and symbolic name of an NSS error code
      * Added NSS_GetVersion to return the NSS version string
      * Added experimental support of RSA-PSS to the softoken only
      * NSS_NoDB_Init does not try to open /pkcs11.txt and /secmod.db
        anymore (bmo#641052, bnc#726096)
    
    Provides:
    patch:openSUSE-2011-100 == 1
    
    Conflicts:
    libfreebl3.i586 < 3.13.1-9.11.1
    libfreebl3-32bit.x86_64 < 3.13.1-9.11.1
    libfreebl3-debuginfo.i586 < 3.13.1-9.11.1
    libfreebl3-debuginfo-32bit.x86_64 < 3.13.1-9.11.1
    libsoftokn3.i586 < 3.13.1-9.11.1
    libsoftokn3-32bit.x86_64 < 3.13.1-9.11.1
    libsoftokn3-debuginfo.i586 < 3.13.1-9.11.1
    libsoftokn3-debuginfo-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss.i586 < 3.13.1-9.11.1
    srcpackage:mozilla-nss < 3.13.1-9.11.1
    mozilla-nss-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-certs.i586 < 3.13.1-9.11.1
    mozilla-nss-certs-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-certs-debuginfo.i586 < 3.13.1-9.11.1
    mozilla-nss-certs-debuginfo-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-debuginfo.i586 < 3.13.1-9.11.1
    mozilla-nss-debuginfo-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-debugsource.i586 < 3.13.1-9.11.1
    mozilla-nss-devel.i586 < 3.13.1-9.11.1
    mozilla-nss-sysinit.i586 < 3.13.1-9.11.1
    mozilla-nss-sysinit-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-sysinit-debuginfo.i586 < 3.13.1-9.11.1
    mozilla-nss-sysinit-debuginfo-32bit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-tools.i586 < 3.13.1-9.11.1
    mozilla-nss-tools-debuginfo.i586 < 3.13.1-9.11.1
    libfreebl3.x86_64 < 3.13.1-9.11.1
    libfreebl3-debuginfo.x86_64 < 3.13.1-9.11.1
    libsoftokn3.x86_64 < 3.13.1-9.11.1
    libsoftokn3-debuginfo.x86_64 < 3.13.1-9.11.1
    mozilla-nss.x86_64 < 3.13.1-9.11.1
    mozilla-nss-certs.x86_64 < 3.13.1-9.11.1
    mozilla-nss-certs-debuginfo.x86_64 < 3.13.1-9.11.1
    mozilla-nss-debuginfo.x86_64 < 3.13.1-9.11.1
    mozilla-nss-debugsource.x86_64 < 3.13.1-9.11.1
    mozilla-nss-devel.x86_64 < 3.13.1-9.11.1
    mozilla-nss-sysinit.x86_64 < 3.13.1-9.11.1
    mozilla-nss-sysinit-debuginfo.x86_64 < 3.13.1-9.11.1
    mozilla-nss-tools.x86_64 < 3.13.1-9.11.1
    mozilla-nss-tools-debuginfo.x86_64 < 3.13.1-9.11.1
    Here is a search showing the requires/dependencies of mozilla-nss.
    Code:
    zypper info --requires mozilla-nss
    Loading repository data...
    Reading installed packages...
    
    
    Information for package mozilla-nss:
    
    Repository: Mozilla Factory
    Name: mozilla-nss
    Version: 3.13.3-98.4
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 1.8 MiB
    Summary: Network Security Services
    Description: 
    Network Security Services (NSS) is a set of libraries designed to
    support cross-platform development of security-enabled server
    applications. Applications built with NSS can support SSL v2 and v3,
    TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
    certificates, and other security standards.
    Requires:
    libc.so.6()(64bit)
    libc.so.6(GLIBC_2.2.5)(64bit)
    libnspr4.so()(64bit)
    libc.so.6(GLIBC_2.14)(64bit)
    libc.so.6(GLIBC_2.3.4)(64bit)
    libc.so.6(GLIBC_2.3)(64bit)
    libc.so.6(GLIBC_2.4)(64bit)
    libplc4.so()(64bit)
    libplds4.so()(64bit)
    libpthread.so.0()(64bit)
    libpthread.so.0(GLIBC_2.2.5)(64bit)
    libnss3.so()(64bit)
    libnss3.so(NSS_3.2)(64bit)
    libnssutil3.so()(64bit)
    libnssutil3.so(NSSUTIL_3.12)(64bit)
    libnss3.so(NSS_3.12)(64bit)
    libnss3.so(NSS_3.3)(64bit)
    libnss3.so(NSS_3.10)(64bit)
    libnss3.so(NSS_3.11)(64bit)
    libnss3.so(NSS_3.4)(64bit)
    libnss3.so(NSS_3.6)(64bit)
    libnss3.so(NSS_3.7)(64bit)
    libnss3.so(NSS_3.9)(64bit)
    libnss3.so(NSS_3.9.3)(64bit)
    mozilla-nss-certs
    libnss3.so(NSS_3.11.1)(64bit)
    libz.so.1()(64bit)
    libnssutil3.so(NSSUTIL_3.12.3)(64bit)
    libnss3.so(NSS_3.8)(64bit)
    libnssutil3.so(NSSUTIL_3.12.5)(64bit)
    libnssutil3.so(NSSUTIL_3.13)(64bit)
    libnss3.so(NSS_3.11.2)(64bit)
    libnss3.so(NSS_3.12.6)(64bit)
    libnss3.so(NSS_3.3.1)(64bit)
    /sbin/ldconfig
    mozilla-nspr >= 4.9.0
    libfreebl3 >= 3.12.4
    libsoftokn3 >= 3.12.4
    Here a did a recommends query for MozillaFirefox.
    Code:
    zypper info --recommends MozillaFirefox
    Loading repository data...
    Reading installed packages...
    
    
    Information for package MozillaFirefox:
    
    Repository: Mozilla Alpha
    Name: MozillaFirefox
    Version: 12.99-7.1
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 38.7 MiB
    Summary: Mozilla Firefox Web Browser
    Description: 
    Mozilla Firefox is a standalone web browser, designed for standards
    compliance and performance.  Its functionality can be enhanced via a
    plethora of extensions.
    Recommends:
    libcanberra0