Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Zypper command for SUSE Linux package management     - Debian (Wheezy) were installed wxPython GUI development (Linux)

- File SUID, SGID, Sticky property (Linux)

- Free compiler install MySQL-5.6.14 (Database)

- How to install Git on CentOS 7 (Linux)

- Linear table with a Java implementation of the iterator (Programming)

- Vim simple configuration (Linux)

- How MAT Android application memory leak analysis (Programming)

- Linux Beginner Guide: Installing packages on Ubuntu and Fedora (Linux)

- Use Elasticsearch + Logstash + Kibana set up centralized log Practice Analysis Platform (Server)

- Ubuntu and derived versions of the user how to install G Mic 1.5.8.5 (Linux)

- OpenResty load balancing MySQL (Database)

- Some of the bibliographic management tools to good use on linux (Linux)

- Analysis examples: Intrusion Response Linux platform Case (Linux)

- Getting Started with Java NIO (Programming)

- Everyone should know something about TCP (Linux)

- Security of data to create a safe .mdb database (Linux)

- On FreeBSD 10.2 Bugzilla how to install and configure Apache SSL (Server)

- How to Use Nmap security scanner tool on Linux (Linux)

- Zabbix monitoring different versions of RAID installation and monitoring and MySQL master-slave monitor (Server)

- How to Disable Linux IPv6 (Linux)

 
         
  Zypper command for SUSE Linux package management
     
  Add Date : 2018-11-21      
         
         
         
  SUSE (Software and System Entwicklung, namely software and systems development which 'entwicklung' is German, meaning development) Linux is an operating system created by Novell in the Linux kernel basis. SUSE Linux release has two branches. One of them is named openSUSE, which is a free operating system and free (free as in speech as well as free as in wine). The system was developed by the open source community to maintain and support some of the latest version of the application software, the latest stable version is 13.2.

Another branch is SUSE Linux Enterprise. The branch is a Linux distribution for enterprises and commercial product design, it contains a large number of enterprise applications as well as for commercial production environment characteristics. The latest stable version is 12.

Zypper and are Yast package management tool SUSE Linux platform, their underlying use RPM (LCTT Translator's Note: RPM originally referred RedHat Pacakge Manager, is now widely interpreted as a recursive abbreviation of the phrase RPM Package Manager).

Yast (Yet another Setup Tool) is a tool for system administration, setup and configuration on the Enterprise Edition and OpenSUSE SUSE.

Zypper is a package manager ZYpp command line interface that can be used to install, remove software on SUSE Linux and system updates. ZYpp provide underlying support for the Zypper and Yast.

This article will introduce the practical application of some common Zypper command. These commands are used to install, update, or delete any package manager is capable of working.

Important: Remember that all of these commands in the system will have an impact globally, it must be executed as root, or the command fails.

Get help with basic Zypper

Execute zypper without any option, the global output of the command options, and a list of subcommands (LCTT Translator's Note: Global options, global option, enter the command console and optional parameters are divided into two categories according to the customary position parameters. , generally referred to as an optional parameter option 'option', and positional parameters parameter called 'argument').

# Zypper
Usage:
zypper [--global-options]
Get help with a specific sub-commands, such as 'in' (install), you can execute the following command

# Zypper help in
or

# Zypper help install
install (in) [options] {capability | rpm_file_uri}
Install packages with specified capabilities or RPM files with specified
location. A capability is NAME [.ARCH] [OP], where OP is one
of < , < = , = , > = , > .
Command options:
--from < alias | # | URI > Select packages from the specified repository.
-r, - repo < alias | # | URI > Load only the specified repository.
-t, - type Type of package (package, patch, pattern, product, srcpackage).
Default: package.
-n, - name Select packages by plain name, notby capability.
-C, - Capability Select packages by capability.
-f, - force Install even if the item is already installed (reinstall),
downgraded or changes vendor or architecture.
--oldpackage Allow to replace a newer item with an older one.
Handyif we are doing a rollback.Unlike - force
it will not enforce a reinstall.
--replacefiles Install the packages even if they replace files from other,
already installed, packages.Defaultis to treat file conflicts
as an error .-- download-as-needed disables the fileconflict check.
......
Before you install a security search subcontract (with gnome-desktop for example)

# Zypper se gnome-desktop
Retrieving repository 'openSUSE-13.2-Debug' metadata ........................................ .................... [done]
Building repository 'openSUSE-13.2-Debug' cache ........................................ ......................... [done]
Retrieving repository 'openSUSE-13.2-Non-Oss' metadata ...................................... ................... [done]
Building repository 'openSUSE-13.2-Non-Oss' cache ...................................... ......................... [done]
Retrieving repository 'openSUSE-13.2-Oss' metadata ........................................ ...................... [done]
Building repository 'openSUSE-13.2-Oss' cache ........................................ ........................... [done]
Retrieving repository 'openSUSE-13.2-Update' metadata ........................................ ................... [done]
Building repository 'openSUSE-13.2-Update' cache ........................................ ........................ [done]
Retrieving repository 'openSUSE-13.2-Update-Non-Oss' metadata .................................... ............... [done]
Building repository 'openSUSE-13.2-Update-Non-Oss' cache .................................... .................... [done]
Loading repository data ...
Reading installed packages ...
S | Name | Summary | Type
- + ------- + --------------------------------------- -------------------------------------------------- - + -----------
| Gnome-desktop2-lang | Languagesforpackage gnome-desktop2 | package
| Gnome-desktop2 | The GNOME Desktop API Library | package
| Libgnome-desktop-2-17 | The GNOME Desktop API Library | package
| Libgnome-desktop-3-10 | The GNOME Desktop API Library | package
| Libgnome-desktop-3-devel | The GNOME Desktop API Library - DevelopmentFiles | package
| Libgnome-desktop-3_0-common | The GNOME Desktop API Library - Common data files | package
| Gnome-desktop-debugsource | Debug sources forpackage gnome-desktop | package
| Gnome-desktop-sharp2-debugsource | Debug sources forpackage gnome-desktop-sharp2 | package
| Gnome-desktop2-debugsource | Debug sources forpackage gnome-desktop2 | package
| Libgnome-desktop-2-17-debuginfo | Debug information forpackage libgnome-desktop-2-17 | package
| Libgnome-desktop-3-10-debuginfo | Debug information forpackage libgnome-desktop-3-10 | package
| Libgnome-desktop-3_0-common-debuginfo | Debug information forpackage libgnome-desktop-3_0-common | package
| Libgnome-desktop-2-17-debuginfo-32bit | Debug information forpackage libgnome-desktop-2-17 | package
| Libgnome-desktop-3-10-debuginfo-32bit | Debug information forpackage libgnome-desktop-3-10 | package
| Gnome-desktop-sharp2 | Mono bindings for libgnome-desktop | package
| Libgnome-desktop-2-devel | The GNOME Desktop API Library - DevelopmentFiles | packag
| Gnome-desktop-lang | Languagesforpackage gnome-desktop | package
| Libgnome-desktop-2-17-32bit | The GNOME Desktop API Library | package
| Libgnome-desktop-3-10-32bit | The GNOME Desktop API Library | package
| Gnome-desktop | The GNOME Desktop API Library | srcpackage
Access to information a packet mode (in lamp_server example).

# Zypper info -t pattern lamp_server
Loading repository data ...
Reading installed packages ...
Informationfor pattern lamp_server:
------------------------------------
Repository: openSUSE-13.2-Update
Name: lamp_server
Version: 20141007-5.1
Arch: x86_64
Vendor: openSUSE
Installed: No
Visible to User: Yes
Summary: Weband LAMP Server
Description:
Software to set up a Web server that is able to serve static, dynamic, and interactive content (like a Web shop) .This includes Apache HTTP Server, the database management system MySQL,
and scripting languages such as PHP, Python, Ruby on Rails, orPerl.
Contents:
S | Name | Type | Dependency
- + ------------------------------- + ----- + --------- ------
| Apache2-mod_php5 | package |
| Php5-iconv | package |
i | patterns-openSUSE-base | package |
i | apache2-prefork | package |
| Php5-dom | package |
| Php5-mysql | package |
i | apache2 | package |
| Apache2-example-pages | package |
| Mariadb | package |
| Apache2-mod_perl | package |
| Php5-ctype | package |
| Apache2-doc | package |
| Yast2-http-server | package |
| Patterns-openSUSE-lamp_server | package |
Open a Zypper Shell session.

# Zypper shell
or

# Zypper sh
zypper> help
Usage:
zypper [--global-options]
Note: Zypper shell inside by typing 'help' to get a list of global options and sub-commands.

Zypper Software Library Management

Enumeration defined software library

Use 'zypper repos' or 'zypper lr' to enumerate all set to software libraries.

# Zypper repos
or

# Zypper lr
| Alias | Name | Enabled | Refresh
- + --------------------------- + ------------------- ----------------- + --------- + --------
1 | openSUSE-13.2-0 | openSUSE-13.2-0 | Yes | No
2 | repo-debug | openSUSE-13.2-Debug | Yes | Yes
3 | repo-debug-update | openSUSE-13.2-Update-Debug | No | Yes
4 | repo-debug-update-non-oss | openSUSE-13.2-Update-Debug-Non-Oss | No | Yes
5 | repo-non-oss | openSUSE-13.2-Non-Oss | Yes | Yes
6 | repo-oss | openSUSE-13.2-Oss | Yes | Yes
7 | repo-source | openSUSE-13.2-Source | No | Yes
8 | repo-update | openSUSE-13.2-Update | Yes | Yes
9 | repo-update-non-oss | openSUSE-13.2-Update-Non-Oss | Yes | Yes
Zypper URI displayed in the table inside

# Zypper lr -u
| Alias | Name | Enabled | Refresh | URI
- + --------------------------- + ------------------- ----------------- + --------- + --------- + ------------ -------------------------------------------------- -
1 | openSUSE-13.2-0 | openSUSE-13.2-0 | Yes | No | cd: /// devices = / dev / disk / by-id / ata-VBOX_CD-ROM_VB2-01700376?
2 | repo-debug | openSUSE-13.2-Debug | Yes | Yes | http://download.opensuse.org/debug/distribution/13.2/repo/oss/
3 | repo-debug-update | openSUSE-13.2-Update-Debug | No | Yes | http://download.opensuse.org/debug/update/13.2/
4 | repo-debug-update-non-oss | openSUSE-13.2-Update-Debug-Non-Oss | No | Yes | http://download.opensuse.org/debug/update/13.2-non-oss/
5 | repo-non-oss | openSUSE-13.2-Non-Oss | Yes | Yes | http://download.opensuse.org/distribution/13.2/repo/non-oss/
6 | repo-oss | openSUSE-13.2-Oss | Yes | Yes | http://download.opensuse.org/distribution/13.2/repo/oss/
7 | repo-source | openSUSE-13.2-Source | No | Yes | http://download.opensuse.org/source/distribution/13.2/repo/oss/
8 | repo-update | openSUSE-13.2-Update | Yes | Yes | http://download.opensuse.org/update/13.2/
9 | repo-update-non-oss | openSUSE-13.2-Update-Non-Oss | Yes | Yes | http://download.opensuse.org/update/13.2-non-oss/
Software libraries according to the priority list.

# Zypper lr -P
| Alias | Name | Enabled | Refresh | Priority
- + --------------------------- + ------------------- ----------------- + --------- + --------- + ---------
1 | openSUSE-13.2-0 | openSUSE-13.2-0 | Yes | No | 99
2 | repo-debug | openSUSE-13.2-Debug | Yes | Yes | 99
3 | repo-debug-update | openSUSE-13.2-Update-Debug | No | Yes | 99
4 | repo-debug-update-non-oss | openSUSE-13.2-Update-Debug-Non-Oss | No | Yes | 99
5 | repo-non-oss | openSUSE-13.2-Non-Oss | Yes | Yes | 85
6 | repo-oss | openSUSE-13.2-Oss | Yes | Yes | 99
7 | repo-source | openSUSE-13.2-Source | No | Yes | 99
8 | repo-update | openSUSE-13.2-Update | Yes | Yes | 99
9 | repo-update-non-oss | openSUSE-13.2-Update-Non-Oss | Yes | Yes | 99
Refresh Software Library

Use 'zypper refresh' or 'zypper ref' to refresh zypper software libraries.

# Zypper refresh
or

# Zypper ref
Repository'openSUSE-13.2-0'is up to date.
Repository'openSUSE-13.2-Debug'is up to date.
Repository'openSUSE-13.2-Non-Oss'is up to date.
Repository'openSUSE-13.2-Oss'is up to date.
Repository'openSUSE-13.2-Update'is up to date.
Repository'openSUSE-13.2-Update-Non-Oss'is up to date.
All repositories have been refreshed.
Refresh a specified software library (with 'repo-non-oss' for example).

# Zypper refresh repo-non-oss
Repository'openSUSE-13.2-Non-Oss'is up to date.
Specified repositories have been refreshed.
To update a software library (with 'repo-non-oss' for example).

# Zypper ref -f repo-non-oss
Forcing raw metadata refresh
Retrieving repository 'openSUSE-13.2-Non-Oss' metadata ...................................... ...................... [done]
Forcing building of repository cache
Building repository 'openSUSE-13.2-Non-Oss' cache ...................................... ...................... [done]
Specified repositories have been refreshed.
Modify the software library

In this paper we use 'zypper modifyrepo' or 'zypper mr' to close or open the zypper software libraries.

Before closing a software library, we need to know in zypper, each software library has a unique numeric label associated with it, the number is used to open or close the library software associated with it. Suppose we need to close the 'repo-oss' repository, then we can be obtained by the following method flag digital library software.

# Zypper lr
| Alias | Name | Enabled | Refresh
- + --------------------------- + ------------------- ----------------- + --------- + --------
1 | openSUSE-13.2-0 | openSUSE-13.2-0 | Yes | No
2 | repo-debug | openSUSE-13.2-Debug | Yes | Yes
3 | repo-debug-update | openSUSE-13.2-Update-Debug | No | Yes
4 | repo-debug-update-non-oss | openSUSE-13.2-Update-Debug-Non-Oss | No | Yes
5 | repo-non-oss | openSUSE-13.2-Non-Oss | Yes | Yes
6 | repo-oss | openSUSE-13.2-Oss | No | Yes
7 | repo-source | openSUSE-13.2-Source | No | Yes
8 | repo-update | openSUSE-13.2-Update | Yes | Yes
9 | repo-update-non-oss | openSUSE-13.2-Update-Non-Oss | Yes | Yes
From the list above, we can see the output of the digital marking 'repo-oss' repository is 6, so the following command to shut down the library.

# Zypper mr -d 6
Repository'repo-oss' has been successfully disabled.
If you need to re-open the repository 'repo-oss', connected cases, digital label associated with the six.

# Zypper mr -e 6
Repository'repo-oss' has been successfully enabled.
Open for a certain software library (with 'repo-non-oss' Case) automatic refresh (auto-refresh) and rpm cache and set the priority of the software library, such as 85.

# Zypper mr -rk -p 85 repo-non-oss
Repository'repo-non-oss' priority has been left unchanged (85)
Nothing to change for repository 'repo-non-oss'.
Close all software library rpm file cache.

# Zypper mr -Ka
RPM files caching has been disabled for repository 'openSUSE-13.2-0'.
RPM files caching has been disabled for repository 'repo-debug'.
RPM files caching has been disabled for repository 'repo-debug-update'.
RPM files caching has been disabled for repository 'repo-debug-update-non-oss'.
RPM files caching has been disabled for repository 'repo-non-oss'.
RPM files caching has been disabled for repository 'repo-oss'.
RPM files caching has been disabled for repository 'repo-source'.
RPM files caching has been disabled for repository 'repo-update'.
RPM files caching has been disabled for repository 'repo-update-non-oss'.
All software libraries open rpm file cache.

# Zypper mr -ka
RPM files caching has been enabled for repository 'openSUSE-13.2-0'.
RPM files caching has been enabled for repository 'repo-debug'.
RPM files caching has been enabled for repository 'repo-debug-update'.
RPM files caching has been enabled for repository 'repo-debug-update-non-oss'.
RPM files caching has been enabled for repository 'repo-non-oss'.
RPM files caching has been enabled for repository 'repo-oss'.
RPM files caching has been enabled for repository 'repo-source'.
RPM files caching has been enabled for repository 'repo-update'.
RPM files caching has been enabled for repository 'repo-update-non-oss'.
Close remote repository rpm file cache

# Zypper mr -Kt
RPM files caching has been disabled for repository 'repo-debug'.
RPM files caching has been disabled for repository 'repo-debug-update'.
RPM files caching has been disabled for repository 'repo-debug-update-non-oss'.
RPM files caching has been disabled for repository 'repo-non-oss'.
RPM files caching has been disabled for repository 'repo-oss'.
RPM files caching has been disabled for repository 'repo-source'.
RPM files caching has been disabled for repository 'repo-update'.
RPM files caching has been disabled for repository 'repo-update-non-oss'.
Open remote software repository rpm file cache.

# Zypper mr -kt
RPM files caching has been enabled for repository 'repo-debug'.
RPM files caching has been enabled for repository 'repo-debug-update'.
RPM files caching has been enabled for repository 'repo-debug-update-non-oss'.
RPM files caching has been enabled for repository 'repo-non-oss'.
RPM files caching has been enabled for repository 'repo-oss'.
RPM files caching has been enabled for repository 'repo-source'.
RPM files caching has been enabled for repository 'repo-update'.
RPM files caching has been enabled for repository 'repo-update-non-oss'.
Add new software libraries

Zypper command by two - to add new software libraries 'zypper addrepo' and 'zypper ar'. In this process, you can use the alias URL or software libraries.

Add a new software library (with "http://download.opensuse.org/update/12.3/" as an example).

# Zypper ar http://download.opensuse.org/update/11.1/ update
Adding repository 'update' ............................................. .................................................. .................................................. ............ [done]
Repository'update 'successfully added
Enabled: Yes
Autorefresh: No
GPG check: Yes
URI: http://download.opensuse.org/update/11.1/
Changing the name of a software library, which will merely change the alias software libraries. Command 'zypper namerepo' or 'zypperr nr' qualified for this job. For example, change the label for the digital repository of the 10 named 'upd8', or that will be labeled as an alias for the digital repository 10 to 'upd8', you can use the following command.

# Zypper nr 10 upd8
Repository'update 'renamed to' upd8 '.
Remove Software Library

Remove a software library. Remove from the system a software library allows 'zypper removerepo' or 'zypper rr'. For example, the following command to remove the software library 'upd8'

# Zypper rr upd8
# Removing repository 'upd8' ............................................ ............................................. [done]
Repository'upd8 'has been removed.

Use zypper Package Management

Install a package with zypper

In zypper, we can install the package by the name of a function package. In Firefox, for example, the following command can be used to install the package.

# Zypper in MozillaFirefox
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 128 NEW packages are going to be installed:
adwaita-icon-theme at-spi2-atk-common at-spi2-atk-gtk2 at-spi2-core cantarell-fonts cups-libs desktop-file-utils fontconfig gdk-pixbuf-query-loaders gstreamer gstreamer-fluendo-mp3
gstreamer-plugins-base gtk2-branding-openSUSE gtk2-data gtk2-immodule-amharic gtk2-immodule-inuktitut gtk2-immodule-thai gtk2-immodule-vietnamese gtk2-metatheme-adwaita
gtk2-theming-engine-adwaita gtk2-tools gtk3-data gtk3-metatheme-adwaita gtk3-tools hicolor-icon-theme hicolor-icon-theme-branding-openSUSE libasound2 libatk-1_0-0 libatk-bridge-2_0-0
libatspi0 libcairo2 libcairo-gobject2 libcanberra0 libcanberra-gtk0 libcanberra-gtk2-module libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra-gtk-module-common libcdda_interface0
libcdda_paranoia0 libcolord2 libdrm2 libdrm_intel1 libdrm_nouveau2 libdrm_radeon1 libFLAC8 libfreebl3 libgbm1 libgdk_pixbuf-2_0-0 libgraphite2-3 libgstapp-1_0-0 libgstaudio-1_0-0
libgstpbutils-1_0-0 libgstreamer-1_0-0 libgstriff-1_0-0 libgsttag-1_0-0 libgstvideo-1_0-0 libgthread-2_0-0 libgtk-2_0-0 libgtk-3-0 libharfbuzz0 libjasper1 libjbig2 libjpeg8 libjson-c2
liblcms2-2 libLLVM libltdl7 libnsssharedhelper0 libogg0 liborc-0_4-0 libpackagekit-glib2-18 libpango-1_0-0 libpciaccess0 libpixman-1-0 libpulse0 libsndfile1 libsoftokn3 libspeex1
libsqlite3-0 libstartup-notification-1-0 libtheoradec1 libtheoraenc1 libtiff5 libvisual libvorbis0 libvorbisenc2 libvorbisfile3 libwayland-client0 libwayland-cursor0 libwayland-server0
libX11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-util1 libxcb-xfixes0 libXcomposite1 libXcursor1 libXdamage1 libXevie1
libXfixes3 libXft2 libXi6 libXinerama1 libxkbcommon-0_4_3 libXrandr2 libXrender1 libxshmfence1 libXtst6 libXv1 libXxf86vm1 MesaMesa-libEGL1 Mesa-libGL1 Mesa-libglapi0
metatheme-adwaita-common MozillaFirefoxMozillaFirefox-branding-openSUSE mozilla-nss mozilla-nss-certs PackageKit-gstreamer-plugin pango-tools sound-theme-freedesktop
The following 10 recommended packages were automatically selected:
gstreamer-fluendo-mp3 gtk2-branding-openSUSE gtk2-data gtk2-immodule-amharic gtk2-immodule-inuktitut gtk2-immodule-thai gtk2-immodule-vietnamese libcanberra0 libpulse0
PackageKit-gstreamer-plugin
128new packages to install.
Overall download size: 77.2MiB.Already cached: 0 B After the operation, additional 200.0MiB will be used.
? Continue [y / n / shows all options?] (Y): y
Retrievingpackage cantarell-fonts-0.0.16-1.1.noarch (1/128), 74.1KiB (115.6KiB unpacked)
Retrieving: cantarell-fonts-0.0.16-1.1.noarch.rpm ................................... .................................................. .................................... [done (63.4KiB / s)]
Retrievingpackage hicolor-icon-theme-0.13-2.1.2.noarch (2/128), 40.1KiB (50.5KiB unpacked)
Retrieving: hicolor-icon-theme-0.13-2.1.2.noarch.rpm ................................. .................................................. ................................................ [done ]
Retrievingpackage sound-theme-freedesktop-0.8-7.1.2.noarch (3/128), 372.6KiB (460.3KiB unpacked)
Package installs the specified version number (with gcc 5.1 as an example).

# Zypper in 'gcc <5.1'
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 13 NEW packages are going to be installed:
cpp cpp48 gcc gcc48 libasan0 libatomic1-gcc49 libcloog-isl4 libgomp1-gcc49 libisl10 libitm1-gcc49 libmpc3 libmpfr4 libtsan0-gcc49
13new packages to install.
Overall download size: 14.5MiB.Already cached: 0 B After the operation, additional 49.4MiB will be used.
? Continue [y / n / shows all options?] (Y): y
Installation package for a specific CPU architecture (i586 compatible with the gcc, for example).

# Zypper in gcc.i586
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 13 NEW packages are going to be installed:
cpp cpp48 gcc gcc48 libasan0 libatomic1-gcc49 libcloog-isl4 libgomp1-gcc49 libisl10 libitm1-gcc49 libmpc3 libmpfr4 libtsan0-gcc49
13new packages to install.
Overall download size: 14.5MiB.Already cached: 0 B After the operation, additional 49.4MiB will be used.
? Continue [y / n / shows all options?] (Y): y
Retrievingpackage libasan0-4.8.3 + r212056-2.2.4.x86_64 (1/13), 74.2KiB (166.9KiB unpacked)
Retrieving: libasan0-4.8.3 + r212056-2.2.4.x86_64.rpm ................................. .................................................. .................................... [done (79.2KiB / s)]
Retrievingpackage libatomic1-gcc49-4.9.0 + r211729-2.1.7.x86_64 (2/13), 14.3KiB (26.1KiB unpacked)
Retrieving: libatomic1-gcc49-4.9.0 + r211729-2.1.7.x86_64.rpm ............................... .................................................. .............................. [done (55.3KiB / s)]
Specific CPU architecture for the package to install the specified version number (i586 and compatible version of gcc lower than 5.1 for example)

# Zypper in 'gcc.i586 <5.1'
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 13 NEW packages are going to be installed:
cpp cpp48 gcc gcc48 libasan0 libatomic1-gcc49 libcloog-isl4 libgomp1-gcc49 libisl10 libitm1-gcc49 libmpc3 libmpfr4 libtsan0-gcc49
13new packages to install.
Overall download size: 14.4MiB.Already cached: 129.5KiBAfter the operation, additional 49.4MiB will be used.
? Continue [y / n / shows all options?] (Y): y
In cache libasan0-4.8.3 + r212056-2.2.4.x86_64.rpm (1/13), 74.2KiB (166.9KiB unpacked)
In cache libatomic1-gcc49-4.9.0 + r211729-2.1.7.x86_64.rpm (2/13), 14.3KiB (26.1KiB unpacked)
In cache libgomp1-gcc49-4.9.0 + r211729-2.1.7.x86_64.rpm (3/13), 41.1KiB (90.7KiB unpacked)
Install a software package from the specified library inside, such as installing libxine from amarok in.

# Zypper in amarok upd: libxine1
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 202 NEW packages are going to be installed:
amarok bundle-lang-kde-en clamz cups-libs enscript fontconfig gdk-pixbuf-query-loaders ghostscript-fonts-std gptfdisk gstreamer gstreamer-plugins-base hicolor-icon-theme
hicolor-icon-theme-branding-openSUSE htdig hunspell hunspell-tools icoutils ispell ispell-american kde4-filesystem kdebase4-runtime kdebase4-runtime-branding-openSUSE kdelibs4
kdelibs4-branding-openSUSE kdelibs4-core kdialog libakonadi4 l
.....
Install the package by the name of the specified package.

# Zypper in -n git
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 35 NEW packages are going to be installed:
cvs cvsps fontconfig git git-core git-cvs git-email git-gui gitk git-svn git-web libserf-1-1 libsqlite3-0 libXft2 libXrender1 libXss1 perl-Authen-SASL perl-Clone perl-DBD-SQLite perl-DBI
perl-Error perl-IO-Socket-SSL perl-MLDBM perl-Net-Daemon perl-Net-SMTP-SSL perl-Net-SSLeay perl-Params-Util perl-PlRPC perl-SQL-Statement perl-Term-ReadKey subversion subversion -perl tcl
tk xhost
The following 13 recommended packages were automatically selected:
git-cvs git-email git-gui gitk git-svn git-web perl-Authen-SASL perl-Clone perl-MLDBM perl-Net-Daemon perl-Net-SMTP-SSL perl-PlRPC perl-SQL-Statement
The following packageis suggested, but will not be installed:
git-daemon
35new packages to install.
Overall download size: 15.6MiB.Already cached: 0 B After the operation, additional 56.7MiB will be used.
? Continue [y / n / shows all options?] (Y): y

To install packages via a wildcard, for example, to install all the packages php5.

# Zypper in php5 *
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
Problem: php5-5.6.1-18.1.x86_64 requires smtp_daemon, but this requirement can not be provided
uninstallable providers: exim-4.83-3.1.8.x86_64 [openSUSE-13.2-0]
postfix-2.11.0-5.2.2.x86_64 [openSUSE-13.2-0]
sendmail-8.14.9-2.2.2.x86_64 [openSUSE-13.2-0]
exim-4.83-3.1.8.i586 [repo-oss]
msmtp-mta-1.4.32-2.1.3.i586 [repo-oss]
postfix-2.11.0-5.2.2.i586 [repo-oss]
sendmail-8.14.9-2.2.2.i586 [repo-oss]
exim-4.83-3.1.8.x86_64 [repo-oss]
msmtp-mta-1.4.32-2.1.3.x86_64 [repo-oss]
postfix-2.11.0-5.2.2.x86_64 [repo-oss]
sendmail-8.14.9-2.2.2.x86_64 [repo-oss]
postfix-2.11.3-5.5.1.i586 [repo-update]
postfix-2.11.3-5.5.1.x86_64 [repo-update]
Solution1: Following actions will be done:
donot install php5-5.6.1-18.1.x86_64
donot install php5-pear-Auth_SASL-1.0.6-7.1.3.noarch
donot install php5-pear-Horde_Http-2.0.1-6.1.3.noarch
donot install php5-pear-Horde_Image-2.0.1-6.1.3.noarch
donot install php5-pear-Horde_Kolab_Format-2.0.1-6.1.3.noarch
donot install php5-pear-Horde_Ldap-2.0.1-6.1.3.noarch
donot install php5-pear-Horde_Memcache-2.0.1-7.1.3.noarch
donot install php5-pear-Horde_Mime-2.0.2-6.1.3.noarch
donot install php5-pear-Horde_Oauth-2.0.0-6.1.3.noarch
donot install php5-pear-Horde_Pdf-2.0.1-6.1.3.noarch
....
Use mode name (schema name is the name of a class of the package) to batch install packages.

# Zypper in -t pattern lamp_server
ading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 29 NEW packages are going to be installed:
apache2 apache2-doc apache2-example-pages apache2-mod_perl apache2-prefork patterns-openSUSE-lamp_server perl-Data-Dump perl-Encode-Locale perl-File-Listing perl-HTML-Parser
perl-HTML-Tagset perl-HTTP-Cookies perl-HTTP-Daemon perl-HTTP-Date perl-HTTP-Message perl-HTTP-Negotiate perl-IO-HTML perl-IO-Socket-SSL perl-libwww-perl perl-Linux -Pid
perl-LWP-MediaTypes perl-LWP-Protocol-https perl-Net-HTTP perl-Net-SSLeay perl-Tie-IxHash perl-TimeDate perl-URI perl-WWW-RobotRules yast2-http-server
The following NEW pattern is going to be installed:
lamp_server
The following 10 recommended packages were automatically selected:
apache2 apache2-doc apache2-example-pages apache2-mod_perl apache2-prefork perl-Data-Dump perl-IO-Socket-SSL perl-LWP-Protocol-https perl-TimeDate yast2-http-server
29new packages to install.
Overall download size: 7.2MiB.Already cached: 1.2MiBAfter the operation, additional 34.7MiB will be used.
? Continue [y / n / shows all options?] (Y):
Use the command line to install a package to uninstall another package, for example, installed unloading vi nano

# Zypper in nano -vi
Loading repository data ...
Reading installed packages ...
'-vi'not Found inpackage names.Trying capabilities.
Resolvingpackage dependencies ...
The following 2 NEW packages are going to be installed:
nano nano-lang
The following packageis going to be REMOVED:
vim
The following recommended package was automatically selected:
nano-lang
2new packages to install, 1 to remove.
Overall download size: 550.0KiB.Already cached: 0 B After the operation, 463.3KiB will be freed.
? Continue [y / n / shows all options?] (Y):
...
Use zypper install rpm packages.

# Zypper in teamviewer * .rpm
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 24 NEW packages are going to be installed:
alsa-oss-32bit fontconfig-32bit libasound2-32bit libexpat1-32bit libfreetype6-32bit libgcc_s1-gcc49-32bit libICE6-32bit libjpeg62-32bit libpng12-0-32bit libpng16-16-32bit libSM6-32bit
libuuid1-32bit libX11-6-32bit libXau6-32bit libxcb1-32bit libXdamage1-32bit libXext6-32bit libXfixes3-32bit libXinerama1-32bit libXrandr2-32bit libXrender1-32bit libXtst6-32bit
libz1-32bit teamviewer
The following recommended package was automatically selected:
alsa-oss-32bit
24new packages to install.
Overall download size: 41.2MiB.Already cached: 0 B After the operation, additional 119.7MiB will be used.
? Continue [y / n / shows all options?] (Y):
..
 

Use zypper uninstall packages

Command 'zypper remove' and 'zypper rm' for unloading packages. For example unload apache2:

# Zypper remove apache2
or

# Zypper rm apache2
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following 2 packages are going to be REMOVED:
apache2 apache2-prefork
2 packages to remove.
After the operation, 4.2MiB will be freed.
? Continue [y / n / shows all options?] (Y): y
(1/2) Removing apache2-2.4.10-19.1 ..................................... ................................... [done]
(2/2) Removing apache2-prefork-2.4.10-19.1 ................................... ............................. [done]
 

Using Zypper package be updated

Update all packages, you can use 'zypper update' or 'zypper up'.

# Zypper up
or

# Zypper update
Loading repository data ...
Reading installed packages ...
Nothing to do.
Updates the specified software packages, such as updating apache2 and openssh.

zypper up apache2 openssh
Loading repository data ...
Reading installed packages ...
No update candidate for'apache2-2.4.10-19.1.x86_64'.The highest available version is already installed.
No update candidate for'openssh-6.6p1-5.1.3.x86_64'.The highest available version is already installed.
Resolvingpackage dependencies ...
Nothing to do.
Install a software library, for example mariadb, if the inventory is renewed.

# Zypper in mariadb
Loading repository data ...
Reading installed packages ...
'Mariadb'is already installed.
No update candidate for'mariadb-10.0.13-2.6.1.x86_64'.The highest available version is already installed.
Resolvingpackage dependencies ...
Nothing to do.
 

Installation source files and build dependencies

Command 'zypper source-install' or 'zypper si' can be used to compile a package from the source file

Install one package source files and their dependencies, such as mariadb.

# Zypper si mariadb
Reading installed packages ...
Loading repository data ...
Resolvingpackage dependencies ...
The following 36 NEW packages are going to be installed:
autoconf automake bison cmake cpp cpp48 gcc gcc48 gcc48-c ++ gcc-c ++ libaio-devel libarchive13 libasan0 libatomic1-gcc49 libcloog-isl4 libedit-devel libevent-devel libgomp1-gcc49 libisl10
libitm1-gcc49 libltdl7 libmpc3 libmpfr4 libopenssl-devel libstdc ++ 48-devel libtool libtsan0-gcc49 m4 make ncurses-devel pam-devel readline-devel site-config tack tcpd-devel zlib-devel
The following source packageis going to be installed:
mariadb
36new packages to install, 1 source package.
Overall download size: 71.5MiB.Already cached: 129.5KiBAfter the operation, additional 183.9MiB will be used.
? Continue [y / n / shows all options?] (Y): y
Only one installation package source files, such as mariadb

# Zypper in -D mariadb
Loading repository data ...
Reading installed packages ...
'Mariadb'is already installed.
No update candidate for'mariadb-10.0.13-2.6.1.x86_64'.The highest available version is already installed.
Resolvingpackage dependencies ...
Nothing to do.
Only one installation package dependencies, such as mariadb

# Zypper si -d mariadb
Reading installed packages ...
Loading repository data ...
Resolvingpackage dependencies ...
The following 36 NEW packages are going to be installed:
autoconf automake bison cmake cpp cpp48 gcc gcc48 gcc48-c ++ gcc-c ++ libaio-devel libarchive13 libasan0 libatomic1-gcc49 libcloog-isl4 libedit-devel libevent-devel libgomp1-gcc49 libisl10
libitm1-gcc49 libltdl7 libmpc3 libmpfr4 libopenssl-devel libstdc ++ 48-devel libtool libtsan0-gcc49 m4 make ncurses-devel pam-devel readline-devel site-config tack tcpd-devel zlib-devel
The following packageis recommended, but will not be installed due to conflicts or dependency issues:
readline-doc
36new packages to install.
Overall download size: 33.7MiB.Already cached: 129.5KiBAfter the operation, additional 144.3MiB will be used.
? Continue [y / n / shows all options?] (Y): y
 

Call scripts and applications Zypper (non-interactive)

Install a package, and skip the interaction with the user during the installation process, for example mariadb.

# Zypper --non-interactive in mariadb
Loading repository data ...
Reading installed packages ...
'Mariadb'is already installed.
No update candidate for'mariadb-10.0.13-2.6.1.x86_64'.The highest available version is already installed.
Resolvingpackage dependencies ...
Nothing to do.
Uninstall a package, and skip the interaction with the user during the uninstall process, for example mariadb

# Zypper --non-interactive rm mariadb
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
The following packageis going to be REMOVED:
mariadb
1package to remove.
After the operation, 71.8MiB will be freed.
? Continue [y / n / shows all options?] (Y): y
(1/1) Removing mariadb-10.0.13-2.6.1 ................................... .......................................... [done]
Zypper display output in XML format.

# Zypper --xmlout
Usage:
zypper [--global-options] [- command-options] [arguments]
GlobalOptions
....
Prohibit more information to the screen during the installation process.

# Zypper --quiet in mariadb
The following NEW packageis going to be installed:
mariadb
1newpackage to install.
Overall download size: 0 B.Already cached: 7.8MiBAfter the operation, additional 71.8MiB will be used.
? Continue [y / n / shows all options?] (Y):
...
Prohibition details of the output to the screen during the uninstall process

# Zypper --quiet rm mariadb
Automatically agree or copyright agreement.

# Zypper patch --auto-agree-with-licenses
Loading repository data ...
Reading installed packages ...
Resolvingpackage dependencies ...
Nothing to do.
 

Clear Cache and view historical information Zypper

The following command can be used to clean up Zypper cache.

# Zypper clean
All repositories have been cleaned up.
If you need a one-time cleaning of metadata and package cache, you can -all or -a options to achieve the objective

# zypper clean -a
All repositories have been cleaned up.
See Zypper of historical information. Any action by the package manager Zypper carried out, including the installation, update, and uninstall information will remain in the history of / var / log / zypp / history in. You can view this file by cat, or through a filter to sort of want to see the information.

cat / var / log / zypp / history
2015-05-0715: 43: 03 | install | boost-license1_54_0 | 1.54.0-10.1.3 | noarch || openSUSE-13.2-0 | 0523b909d2aae5239f9841316dafaf3a37b4f096 |
2015-05-0715: 43: 03 | install | branding-openSUSE | 13.2-3.6.1 | noarch || openSUSE-13.2-0 | 6609def94b1987bf3f90a9467f4f7ab8f8d98a5c |
2015-05-0715: 43: 03 | install | bundle-lang-common-en | 13.2-3.3.1 | noarch || openSUSE-13.2-0 | ca55694e6fdebee6ce37ac7cf3725e2aa6edc342 |
2015-05-0715: 43: 03 | install | insserv-compat | 0.1-12.2.2 | noarch || openSUSE-13.2-0 | 6160de7fbf961a279591a83a1550093a581214d9 |
2015-05-0715: 43: 03 | install | libX11-data | 1.6.2-5.1.2 | noarch || openSUSE-13.2-0 | f1cb58364ba9016c1f93b1a383ba12463c56885a |
2015-05-0715: 43: 03 | install | libnl-config | 3.2.25-2.1.2 | noarch || openSUSE-13.2-0 | aab2ded312a781e93b739b418e3d32fe4e187020 |
2015-05-0715: 43: 04 | install | wireless-regdb | 2014.06.13-1.2 | noarch || openSUSE-13.2-0 | be8cb16f3e92af12b5ceb977e37e13f03c007bd1 |
2015-05-0715: 43: 04 | install | yast2-trans-en_US | 3.1.0-2.1 | noarch || openSUSE-13.2-0 | 1865754e5e0ec3c149ac850b340bcca55a3c404d |
2015-05-0715: 43: 04 | install | yast2-trans-stats | 2.19.0-16.1.3 | noarch || openSUSE-13.2-0 | b107d2b3e702835885b57b04d12d25539f262d1a |
2015-05-0715: 43: 04 | install | cracklib-dict-full | 2.8.12-64.1.2 | x86_64 || openSUSE-13.2-0 | 08bd45dbba7ad44e3a4837f730be76f55ad5dcfa |
......
 

Using Zypper carried SUSE system upgrade

You can use the Zypper command 'dist-upgrade' option to upgrade your current SUSE Linux to the latest version.

# Zypper dist-upgrade
You are about to do a distribution upgrade with all enabled repositories.Make sure these repositories are compatible before you continue.See'man zypper'for more information about this command.
Building repository 'openSUSE-13.2-0' cache ........................................ ............................. [done]
Retrieving repository 'openSUSE-13.2-Debug' metadata ........................................ .................... [done]
Building repository 'openSUSE-13.2-Debug' cache ........................................ ......................... [done]
Retrieving repository 'openSUSE-13.2-Non-Oss' metadata ...................................... .................... [done]
Building repository 'openSUSE-13.2-Non-Oss' cache ...................................... ......................... [done]
This concludes the text. I hope this can help readers, especially novices Management SUSE Linux systems and servers. If you feel some of the more important commands are missing author, please write in the comments section of your return, the author of the article will be updated according to comments. Keep in touch, keep the comments, Thanks for your support.
     
         
         
         
  More:      
 
- QBit development of micro-services (Server)
- Linux rename command usage in learning to modify the file name (Linux)
- Enterprise Hadoop cluster architecture - Hadoop installation (Server)
- Linux Security Raiders SSH tools SCP uses examples to explain in detail (Linux)
- CentOS 7 install Hadoop-cdh-2.6 (Server)
- Python KNN algorithm of actual realization (Programming)
- CentOS environment prepared crontab scheduled tasks (Linux)
- Iptables Instructions (Linux)
- 10 practical Java programming technology (Programming)
- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)
- Ubuntu users Steam controller does not work solutions (Linux)
- Linux ldconfig command (Linux)
- Python-- for anomalies and reflection of objects articles (Programming)
- CentOS / Linux kernel upgrade (Linux)
- Linux (RHEL6 CENTOS6 OLE6) VNC-SERVER Installation and Configuration (Server)
- Linux install Maven and SVN client (Linux)
- Nginx DHCP TFTP Kickstart set up automatic installation system (Server)
- MariaDB database storage path modify configuration issues (Database)
- The Sublime Text 3 configuration file (Linux)
- MySQL multi-master-slave synchronization (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.