• Zypper Command - Zypper Package Management Menu System - Version 2.12

    SCREENSHOTS - MAIN MENU:



    Zypper Command - Zypper Package Management Menu System - is a bash script written to take advantage of and help with the usage of Zypper. Zypper is a command line package manager, which makes use of libzypp, providing functions like repository access, dependency solving, package installation, etc. YaST2 and RPM MetaData package repositories are supported. Zypper repositories are similar to the ones used in YaST, which also makes use of libzypp. Zypper can also handle repository extensions like patches, patterns and products. It is especially useful for accomplishing remote software management tasks or managing software from shell scripts. openSUSE uses the RPM (RPM Package Manager or Red Hat Package Manager) which is a powerful command line driven package management system capable of installing, uninstalling, verifying, querying, and updating computer software packages. Each software package consists of an archive of files along with information about the package like its version, a description, and the like. Zypper Command allows you to work with the RPM database, to backup, restore and repair if required.

    Please be aware that some of the commands used in the bash script Zypper Command will require root user authority to be run. Those Menu options that require root user authority are identified in the menu option.

    APPLICATION PACKAGE QUERY MENU:



    TYPICAL COMMAND RESULT DISPLAY:



    ZYPPER HELP COMMAND OPTIONS REQUEST:



    PRINTING MENU REQUEST:



    REPOSITORY MANAGEMENT MENU:




    PACKAGE MANAGEMENT MENU:



    RPM DATABASE BACKUP, REPAIR and RESTORE MENU:



    ZYPPER CONFIGURATION and LOG FILE VIEWER MENU:



    So I call this bash script Zypper Command (zc) which can be obtained from SUSE Paste. I have written the Zypper Command bash script to reside in the /usr/local/bin folder. Select the Download option in the top right using the link shown below and select open with Kwrite or another text editor. Then save the following text into the file called zc (as in /usr/local/bin/zc). You can do an Alt-F2 and then enter kdesu /usr/local/bin/zc (for KDE) or gnomesu edit /usr/local/bin/zc for Gnome:

    Zypper Command - Zypper Package Management Menu System - Version 2.12

    It is possible to directly download the script from SUSE Paste using the following commands (You must delete the old version of Zypper Command first should one exist). Just open up a terminal session and copy the text from any code block show here and past it after the terminal prompt and then press enter:

    Code:
    sudo rm /usr/local/bin/zc
    Code:
    sudo wget -nc http://paste.opensuse.org/view/download/75755470 -O /usr/local/bin/zc
    Next, you need to mark the file zc as executable with the following command:

    Code:
    sudo chmod +x /usr/local/bin/zc
    You can add all three commands above together and run them as one terminal command. Just copy from here this one line below and paste the command into a terminal session and then press enter. This is an easy to do and highly recommended method to get Zypper Command on your PC:

    Code:
    sudo rm /usr/local/bin/zc ; sudo wget -nc  http://paste.opensuse.org/view/download/75755470 -O /usr/local/bin/zc ;  sudo chmod +x /usr/local/bin/zc
    To use Zypper Command run the terminal command:

    Code:
    zc
    The very first time you run Zypper Command it will create desktop and application icons for you. The system icon will request root user authority to be written to the folder location of /usr/share/applications.

    DESKTOP START-UP VIEW USING KDE:



    Here is more info on using Zypper in the form of two PDF documents and one text file.

    1) https://en.opensuse.org/images/1/17/...at-sheet-1.pdf

    2) https://en.opensuse.org/images/7/76/...t-2-letter.pdf

    3) https://en.opensuse.org/SDB-Zypper_manual_(plain)

    While writing Zypper Command I did find an error in one of the above documents. Why not let us know what it is?

    Here is another good link for Zypper: https://en.opensuse.org/SDB-Zypper_usage_12.2

    Zypper Command Supports the Ability to import repo listings and to install package file lists. A Repo file would look like this:

    Save as the file $HOME/Documents/openSUSE_12.3_Multimedia.repo

    Code:
    [Packman]
    name=Packman
    enabled=1
    autorefresh=0
    baseurl=http://packman.inode.at/suse/openSUSE_12.3/
    path=/
    type=rpm-md
    priority=10
    keeppackages=0
    
    [libdvdcss]
    name=libdvdcss
    enabled=1
    autorefresh=1
    baseurl=http://opensuse-guide.org/repo/12.3/
    type=rpm-md
    keeppackages=1
    To load this file you would start Zypper Command (zc) from terminal or using your new program icon then select:

    2. Zypper Package Repository Management Menu and then 2. Zypper Import Repository *.repo File (root authority)
    Select the file openSUSE_12.3_Multimedia.repo and press the Open button and confirm you want to load these repos. Invalid repo information or if the repos already exist will casue the repos to not be installed.

    Package Files can be installed from .pack file listings. Such as the following:

    Save as the file $HOME/Documents/openSUSE_12.3_KDE_Multimedia.pack using for KDE Multimedia:

    Code:
    # Zypper Command - Zypper Package Management Menu System - Version 2.00 
    # Created on: Sat Jun  8 08:41:44 CDT 2013 by Zypper Command
    # Enter Only Package names you want installed using this *.pack Text File
    
    libxine2-codecs 
    ffmpeg 
    lame 
    gstreamer-0_10-plugins-good 
    gstreamer-0_10-plugins-bad 
    gstreamer-0_10-plugins-ugly 
    gstreamer-0_10-plugins-bad-orig-addon 
    gstreamer-0_10-plugins-good-extra 
    gstreamer-0_10-plugins-ugly-orig-addon 
    gstreamer-0_10-plugins-ffmpeg 
    libdvdcss2 
    flash-player 
    dvdauthor07 
    gstreamer-plugins-base 
    gstreamer-plugins-bad 
    gstreamer-plugins-bad-orig-addon 
    gstreamer-plugins-good gstreamer-plugins-ugly 
    gstreamer-plugins-ugly-orig-addon 
    gstreamer-plugins-good-extra 
    gstreamer-0_10-plugins-fluendo_mpegdemux 
    gstreamer-0_10-plugins-fluendo_mpegmux 
    k3b-codecs 
    gecko-mediaplayer 
    vlc 
    smplayer 
    h264enc 
    x264 
    gstreamer-plugins-libav 
    vlc-codecs
    Save as the file $HOME/Documents/openSUSE_12.3_GNOME_Multimedia.pack using for GNOME Multimedia:

    Code:
    # Zypper Command - Zypper Package Management Menu System - Version 2.00 
    # Created on: Sat Jun  8 08:42:47 CDT 2013 by Zypper Command
    # Enter Only Package names you want installed using this *.pack Text File
    
    libxine2-codecs 
    ffmpeg 
    lame 
    gstreamer-0_10-plugins-good 
    gstreamer-0_10-plugins-bad 
    gstreamer-0_10-plugins-ugly 
    gstreamer-0_10-plugins-bad-orig-addon 
    gstreamer-0_10-plugins-good-extra 
    gstreamer-0_10-plugins-ugly-orig-addon 
    gstreamer-0_10-plugins-ffmpeg 
    libdvdcss2 
    flash-player 
    dvdauthor07 
    gstreamer-plugins-base 
    gstreamer-plugins-bad 
    gstreamer-plugins-bad-orig-addon 
    gstreamer-plugins-good 
    gstreamer-plugins-ugly 
    gstreamer-plugins-ugly-orig-addon 
    gstreamer-plugins-good-extra 
    gstreamer-0_10-plugins-fluendo_mpegdemux 
    gstreamer-0_10-plugins-fluendo_mpegmux 
    vlc 
    smplayer 
    totem-browser-plugin 
    h264enc 
    x264 
    gstreamer-plugins-libav 
    vlc-codecs
    To load one of these files you would start Zypper Command (zc) from terminal or using your new program icon then select:

    3. Zypper Add/Remove/Edit Package Management Menu and then 4. Zypper Install Package Text File Listing (*.pack, root authority) then select either the file openSUSE_12.3_KDE_Multimedia.pack or openSUSE_12.3_GNOME_Multimedia.pack and press the Open button and the listed packages will be installed as listed. The GNOME package can be used with any desktop if you like.

    Zypper Command can install application packages based on names read from a text
    file. This Text File should include a listing of the application package names
    you want to install. Zypper Command expects the text file name to end with the
    '.pack' file extenstion. The package names can be all on one line, or each
    package name can be on a line by itself or even a combination of both.

    Example:

    # My Package Name Listing 1

    package_name_one
    package_name_two
    package_name_three

    <OR>

    # My Package Name Listing 2

    package_name_one package_name_two package_name_three

    I would suggest you limit the number of packages to be installed to 25 or so.
    If you find a more definitive number, just let me know. This text file should
    contain only the names of the application packages to be installed. Version
    numbers and most anything after the dash, should not be included in the name.
    Both comment lines that include a '#' and blank lines will be ignored.

    Included package names can cause additional dependency application files to be
    installed. Having an Application that requires other applications be installed
    is very normal to occur.

    When creating a new .pack text file make sure to press enter on the last Package
    name included in the list so that a blank line is below the last package name,
    else it will not get installed when the .pack files are read.
    Once You have added in the two new repositories and used the new *.pack file to install required Multimedia Applications, you need to do a Distro Upgrade from the Packman Repository.

    To do this using Zypper Command Start Zypper Command (zc) then select/enter as follows:

    3. Zypper Add/Remove/Edit Package Management Menu

    6. Zypper Distribution Update (zypper dup - root authority)

    Do You wish to Perform a Distribution Wide Update? [y/n] (n): y

    Are Your Repositories Already Corrected and Ready for this Update? [y/n] (n): y

    Please Enter only dist-upgrade Command Options, if any: --from Packman

    You Must Enter the root User Password here ... Then Next you will see

    ... A List of Programs to Load, Replace, Downgrade and so forth will be shown ...

    Continue? [y/n/?] (y): y

    You will install and replace all required Multimedia files from Packman as required. I normally suggest you at least log out of your Desktop and log back in, but a full system restart would be your best course of action after installing a great number of new applications just in case.

    Thank You for using Zypper Command,
    Comments 4 Comments
    1. syampillai's Avatar
      syampillai -
      Very useful
    1. jdmcdaniel3's Avatar
      jdmcdaniel3 -
      Quote Originally Posted by syampillai View Post
      Very useful
      Very Happy that you like Zypper Command.

      Thank You,
    1. kc1di-qrp's Avatar
      kc1di-qrp -
      Thank you very nice.
    1. jdmcdaniel3's Avatar
      jdmcdaniel3 -
      Quote Originally Posted by kc1di-qrp View Post
      Thank you very nice.
      I am very happy you have found Zypper Command useful. If you find any missing feature that is needed, be sure to ask for it.

      Thank You,