Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: How to display software management pattern description

  1. #1
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default How to display software management pattern description

    I would like to display the description of the available patterns. I don't know of an option on zypper info to suppres displaying the pattern content and I don't know of an option on zypper search to display the description. Is there a way to display the description without getting all of the included packages?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,936

    Default Re: How to display software management pattern description

    You mean that when you do
    Code:
    boven:~ # zypper info -t pattern 32bit
    Loading repository data...
    Reading installed packages...
    
    
    Information for pattern 32bit:
    ------------------------------
    Repository      : Main Repository (OSS)     
    Name            : 32bit                     
    Version         : 20171206-lp151.29.1       
    Arch            : x86_64                    
    Vendor          : openSUSE                  
    Installed       : No                        
    Visible to User : Yes                       
    Summary         : 32-Bit Runtime Environment
    Description     :                           
        This will install the 32-bit variant of all selected patterns. This allows to execute 32-bit software.
    Contents        :                           
        S | Name                | Type    | Dependency
        --+---------------------+---------+-----------
          | patterns-base-32bit | package | Required
    
    boven:~ #
    you only want to see the line
    Code:
        This will install the 32-bit variant of all selected patterns. This allows to execute 32-bit software.
    Or do you alos want to see the name of the pattern?
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,936

    Default Re: How to display software management pattern description

    This script:
    Code:
    henk@boven:~/test/shm> cat patt 
    #!/bin/bash
    zypper info -t pattern "${1}" | while read W X
    do
            if [[ ${W} = "Description" ]]
            then    read D
                    echo "${D}"
            fi
    done
    henk@boven:~/test/shm>
    will give you
    Code:
    henk@boven:~/test/shm> ./patt 32bit
    Dit zal de 32-bits variant van alle geselecteerde patronen installeren. Dit maakt het mogelijk om 32-bit software uit te voeren.
    henk@boven:~/test/shm>
    Last edited by hcvv; 02-Mar-2020 at 02:14.
    Henk van Velden

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,836

    Default Re: How to display software management pattern description

    Quote Originally Posted by shmuelmetz View Post
    I would like to display the description of the available patterns.
    The CLI command “zypper search --type pattern” supplies the list of patterns currently available.
    Then, for example:
    Code:
     > zypper info --type pattern kde_pim
    Loading repository data...
    Reading installed packages...
    
    
    Information for pattern kde_pim:
    --------------------------------
    Repository      : Haupt-Repository   
    Name            : kde_pim            
    Version         : 20181130-lp151.1.1 
    Arch            : noarch             
    Vendor          : openSUSE           
    Installed       : Yes (automatically)
    Visible to User : Yes                
    Summary         : KDE PIM Suite      
    Description     :                    
        The KDE PIM Suite (Kontact, KMail, KOrganizer, ...).
    Contents        :                    
        S  | Name                 | Type    | Dependency
        ---+----------------------+---------+------------
        i  | patterns-kde-kde_pim | package | Required
        i+ | akregator            | package | Recommended
        i+ | kaddressbook         | package | Recommended
        i  | kleopatra            | package | Recommended
        i+ | kmail                | package | Recommended
        i+ | knotes               | package | Recommended
        i+ | kontact              | package | Recommended
        i+ | korganizer           | package | Recommended
    
     >

  5. #5
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default Re: How to display software management pattern description

    Quote Originally Posted by hcvv View Post
    You mean that when you do
    Code:
    boven:~ # zypper info -t pattern 32bit
    Loading repository data...
    Reading installed packages...
    
    
    Information for pattern 32bit:
    ------------------------------
    Repository      : Main Repository (OSS)     
    Name            : 32bit                     
    Version         : 20171206-lp151.29.1       
    Arch            : x86_64                    
    Vendor          : openSUSE                  
    Installed       : No                        
    Visible to User : Yes                       
    Summary         : 32-Bit Runtime Environment
    Description     :                           
        This will install the 32-bit variant of all selected patterns. This allows to execute 32-bit software.
    Contents        :                           
        S | Name                | Type    | Dependency
        --+---------------------+---------+-----------
          | patterns-base-32bit | package | Required
    
    boven:~ #
    you only want to see the line
    Code:
        This will install the 32-bit variant of all selected patterns. This allows to execute 32-bit software.
    Or do you alos want to see the name of the pattern?
    I'd like at least the name, the status and the description, preferably everything but the contents, for all available patterns. I'd also like the same type of display for packages matching a search.

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,836

    Default Re: How to display software management pattern description

    Quote Originally Posted by shmuelmetz View Post
    I'd like at least the name, the status and the description, preferably everything but the contents, for all available patterns.
    “rpm --query --group 'Metapackages'” lists all installed RPM packages which are patterns.
    “rpm --query --group 'Metapackages' --info” lists everything except the contents of all installed RPM packages which are patterns.
    “zypper search --type pattern” lists all, regardless of whether they're installed or not, RPM packages which are patterns – the "S" column indicates the “installed” (or not) status.
    To use an RPM query on a pattern, one first has to use “zypper info” on the pattern to extract the “patterns-??????” package name which “rpm --query patterns-??? --info” can use – unfortunately, only for installed patterns …

    Quote Originally Posted by shmuelmetz View Post
    I'd also like the same type of display for packages matching a search.
    A Zypper “info” query with wildcards doesn't include the contents of the packages found – for example “zypper info vm*” …

  7. #7
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default Re: How to display software management pattern description

    Quote Originally Posted by dcurtisfra View Post
    The CLI command “zypper search --type pattern” supplies the list of patterns currently available.
    Then, for example:
    Code:
     > zypper info --type pattern kde_pim
    Loading repository data...
    Reading installed packages...
    
    
    Information for pattern kde_pim:
    --------------------------------
    Repository      : Haupt-Repository   
    Name            : kde_pim            
    Version         : 20181130-lp151.1.1 
    Arch            : noarch             
    Vendor          : openSUSE           
    Installed       : Yes (automatically)
    Visible to User : Yes                
    Summary         : KDE PIM Suite      
    Description     :                    
        The KDE PIM Suite (Kontact, KMail, KOrganizer, ...).
    Contents        :                    
        S  | Name                 | Type    | Dependency
        ---+----------------------+---------+------------
        i  | patterns-kde-kde_pim | package | Required
        i+ | akregator            | package | Recommended
        i+ | kaddressbook         | package | Recommended
        i  | kleopatra            | package | Recommended
        i+ | kmail                | package | Recommended
        i+ | knotes               | package | Recommended
        i+ | kontact              | package | Recommended
        i+ | korganizer           | package | Recommended
    
     >
    I wrote "I don't know of an option on zypper search to display the description.", and, indeed, the command that you executed did not display the description. Another poster suggested a bash script, and it may be that there is no way to do it without a script.

  8. #8
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default Re: How to display software management pattern description

    Quote Originally Posted by dcurtisfra View Post
    “rpm --query --group 'Metapackages'” lists all installed RPM packages which are patterns.
    “rpm --query --group 'Metapackages' --info” lists everything except the contents of all installed RPM packages which are patterns.
    I need both installed and uninstalled patterns.

    “zypper search --type pattern” lists all, regardless of whether they're installed or not, RPM packages which are patterns – the "S" column indicates the “installed” (or not) status.
    That doesn't give descriptions.

    To use an RPM query on a pattern, one first has to use “zypper info” on the pattern to extract the “patterns-??????” package name which “rpm --query patterns-??? --info” can use – unfortunately, only for installed patterns …


    A Zypper “info” query with wildcards doesn't include the contents of the packages found – for example “zypper info vm*” …
    That works for packages, but
    Code:
    ARCAOS-40ADEE0:~ # zypper info -t pattern b*
    Loading repository data...
    Reading installed packages...
    
    
    pattern 'bin' not found.

  9. #9
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default Re: How to display software management pattern description

    Quote Originally Posted by shmuelmetz View Post
    I wrote "I don't know of an option on zypper search to display the description.", and, indeed, the command that you executed did not display the description. Another poster suggested a bash script, and it may be that there is no way to do it without a script.
    Soory, I was looking at the wrong post. Your command gives the description but does not suppress the content.

    I also tried
    Code:
    ARCAOS-40ADEE0:~ # zypper info -t pattern *
    Loading repository data...
    Reading installed packages...
    
    
    pattern 'Desktop' not found.
    
    pattern 'Documents' not found.
    
    pattern 'Downloads' not found.
    
    pattern 'Music' not found.
    
    pattern 'NVIDIA' not found.
    
    pattern 'Pictures' not found.
    
    pattern 'Public' not found.
    
    pattern 'Templates' not found.
    
    pattern 'Videos' not found.
    
    pattern 'bin' not found.
    
    pattern 'inst-sys' not found.

  10. #10
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    195

    Default Re: How to display software management pattern description

    Quote Originally Posted by hcvv View Post
    This script:
    Code:
    henk@boven:~/test/shm> cat patt 
    #!/bin/bash
    zypper info -t pattern "${1}" | while read W X
    do
            if [[ ${W} = "Description" ]]
            then    read D
                    echo "${D}"
            fi
    done
    henk@boven:~/test/shm>
    will give you
    Code:
    henk@boven:~/test/shm> ./patt 32bit
    Dit zal de 32-bits variant van alle geselecteerde patronen installeren. Dit maakt het mogelijk om 32-bit software uit te voeren.
    henk@boven:~/test/shm>
    Thanks; I'm beginning to suspect that a script may indeed be the only way. In which case I'll need to parse the output of zypper search -t pattern, then parse the output of zypper info -t pattern foo bar baz, looking for lines starting with Information for pattern and Contents.

Page 1 of 5 123 ... 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
  •