Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Correct names for installing packages with zypper

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

    Default Correct names for installing packages with zypper

    I'm trying to create a sript to install everything on a new openSUSE LEAP that I had on a previous release. The Yast menu for installing patterns doesn't list the actual pattern names, so I used zipper and have some questions about the output.

    Pattern names for gnome don't align well with the dscriptins in the Yast menu; which of these do I need? gnome_basic, gnome_x11, patterns-gnome-gnome_basic, patterns-gnome-gnome_x11

    In general, between foo and patterns-foo?

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,802
    Blog Entries
    14

    Default Re: Correct names for installing packages with zypper

    From YaST's Software manager you can export the installed packages to an xml file, and ( not sure if during install ) import that on another machine. I've done this once or twice, but too long ago to remember all the details.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jan 2018
    Location
    Annandale, VA
    Posts
    124

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by Knurpht View Post
    From YaST's Software manager you can export the installed packages to an xml file, and ( not sure if during install ) import that on another machine. I've done this once or twice, but too long ago to remember all the details.
    Yes, but I'm trying to do everything from a script.

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,802
    Blog Entries
    14

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by shmuelmetz View Post
    Yes, but I'm trying to do everything from a script.
    That would be a script recreating autoyast. Admitted I don't have much experience there, autoyast should be the tool. If you insist on writing your own script ( have a good time ) that should bring you what you want. Both for 'transferring' an install, and for 'cloning' an install. There's a YaST module ( installable ) for it, so you can even create a modified install.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,802
    Blog Entries
    14

    Default Re: Correct names for installing packages with zypper

    Whoohah, it's even progressed further than I thought. The autoyast2 features can create a complete autoinst.xml which can be read by the installer. So if you want a homebrew script install the autoyast* packages, create an autoinst.xml and find out how to use it in your own script. Next, find out how the installer deals with the xml, make it execute your script and be satisfied only when you replicated the result of the tested installer options with the autoinst.xml .

    FWIW, I assume you see this as a personal project. Otherwise use what's already there
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Apr 2016
    Location
    North America
    Posts
    532

    Default Re: Correct names for installing packages with zypper

    Code:
    zypper in -t pattern gnome
    Tumbleweed, Xfce, Firefox, uBlock Origin

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

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by ravas View Post
    Code:
    zypper in -t pattern gnome
    Yes, to install any pattern with the text string "gnome" in the name.
    And, if you want to list every available pattern, the following will do that... and you can modify the search the usual ways like restricting to installed
    Code:
    zypper se -t pattern
    I do not generally recommend autoyast unless you want to build a complete unattended install including the distro.
    If instead you simply want to script everything to install after a distro install (This gives you plenty of flexibility) then a BASH script is sufficient.

    I posted a collection of what I consider many of the most useful commands you can use to build your script...

    The main script page
    https://en.opensuse.org/User:Tsu2/Scripts_and_Scriplets

    Zypper commands
    https://en.opensuse.org/User:Tsu2/BASH_zypper

    I've also sprinkled through my Wiki a number of install scripts, I don't keep them current but can serve as examples how to do various things like add repos, install patterns, packages, configure apps, more.

    If you have any questions about specific things you run into, just post.

    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!

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

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by shmuelmetz View Post
    I'm trying to create a sript to install everything on a new openSUSE LEAP that I had on a previous release. The Yast menu for installing patterns doesn't list the actual pattern names, so I used zipper and have some questions about the output.

    Pattern names for gnome don't align well with the dscriptins in the Yast menu; which of these do I need? gnome_basic, gnome_x11, patterns-gnome-gnome_basic, patterns-gnome-gnome_x11

    In general, between foo and patterns-foo?
    The summary descriptions for the patterns you're asking about...

    Pattern Description
    gnome GNOME Desktop Environment (Wayland)
    gnome_basic GNOME Desktop Environment (Basic)
    gnome_x11 GNOME Desktop Envoronment (X11)

    Note that when you do a repository search for a name, you can return both a pattern and the package that installs the pattern, so for instance that's why you can see both a "gnome_x11" which would be the pattern name and a package called "patterns-gnome-gnome_x11" -- This is very clear when you do your zypper search, the results each clearly say whether it's a pattern or package.
    You can install this either way as follows, both should install the same collection of packages.
    Code:
    zypper in -t pattern gnome_x11   # Installing using pattern name
    zypper in patterns-gnome-gnome_x11   # Installing using package name
    HTH,
    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!

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

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by Knurpht View Post
    From YaST's Software manager you can export the installed packages to an xml file, and ( not sure if during install ) import that on another machine. I've done this once or twice, but too long ago to remember all the details.
    That will include things that are automatically installed; in general, I don't want to carry those forward if a new release of LEAP drops them from the default configuration. What I want is a list of those packages and patterns that I explicitly requested. Most of those are no-brainers, but there are a few edge cases.

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

    Default Re: Correct names for installing packages with zypper

    Quote Originally Posted by Knurpht View Post
    That would be a script recreating autoyast. Admitted I don't have much experience there, autoyast should be the tool. If you insist on writing your own script ( have a good time ) that should bring you what you want. Both for 'transferring' an install, and for 'cloning' an install. There's a YaST module ( installable ) for it, so you can even create a modified install.
    I could write a dozen scripts in the time that it would take to learn and use autoyast. It's possible that I'll eventually play with it just out of curiousity, but my current plans are much more modest. For the time being I don't want to do much more than call zipper to add repositories and install packages; nothing hardware specific.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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