SUSE Linux--zypper Package Management (actual Combat Command Summary)

Source: Internet
Author: User
Tags gpg

(1) zypper ar iso:/?iso=/media/software/opensuse-11.4-dvd-i586.iso dvdiso new add local ISO file as installation source, name and alias are dvdiso.
(2) Zypper ar/data suse11sp1iso A local directory as the installation source with the name Suse11sp1iso.
Mount-o Loop/data/suse11sp1/64-gm-dvd1.iso/mnt/iso mount the ISO file to a directory
(3) Zypper AR http://download.opensuse.org/update/11.3/suse update new Add a URL for the installation source, name is update
Zypper LR lists all the defined installation sources.
Zypper RR Dvdiso Delete the specified installation source (Dvdiso)
Zypper ref refreshes all installation sources
Zypper clean clears the local cache

Add, remove, list installation source commands on Suse10:
Zypper SL Lists installation sources
Zypper SA Dir:///home/suse10_dvd suse10sp2 the local/home/suse10_dvd directory as the installation source with the name SUSE10SP2
Zypper sa nfs://192.168.168.90/src/sles10sp2_x64 suse Linux Enterprise server SP2 the NFS server address as the installation source, named SuSE Linux ENTERPR A bug in Ise Server ten SP2
Zypper SA cd:///?devices=/dev/hdc cdrom the/DEV/HDC device mounted on the disc as the installation source with the name CDROM
Zypper SD suse10sp2 Remove the installation source named SUSE10SP2.

View Help:
Zypper--help
Common functions:
Install the Software:
Zypper--non-interactive Install Package_name
Uninstalling the Software:
Zypper--non-interactive Remove Package_name
To add an installation source:
Zypper Addrepo dvd:/ Alias
To view the installation source:
Zypper Repos
To delete an installation source:
Zypper Removerepo Software Source number

Mode (pattern) Management:
To view the mode information in the system:
Zypper patterns
Install a mode (pattern):
Zypper-t pattern in <pattern_name>
Uninstall a pattern: officially not supported (but you can do it yourself, move your mind, it's easy)
To view information for a pattern:
Zypper Pattern-info <pattern_name>

Software Source path notation:
CD/DVD
cd:/
Cd:/subdir
Cd:/?devices=/dev/hda,/dev/hdb
dvd:/
Dvd:/subdir
Dvd:/?devices=/dev/hda,/dev/hdb

Local Files
Dir:/directory/name
File:/directory/name

Smb/cifs
Cifs://servername/share/path/on/the/share "
Cifs://username:[email Protected]/share/path/on/the/share?mountoptions=ro
Smb://servername/share/path/on/the/share "
Smb://username:[email Protected]/share/path/on/the/share?mountoptions=ro

Nfs
Nfs://nfs-server/exported/path
Nfs://nfs-server/exported/path?mountoptions=ro

HD Disk Volumes
Hd:/?device=/dev/hda1
Hd:/subdir?device=/dev/sda1
Hd:/subdir?device=/dev/sda1&filesystem=reiserfs

ISO Images
Iso:/?iso=/path/to/cd1.iso
Iso:/?iso=cd1.iso&url=dir:/path/to
Iso:/?iso=cd1.iso&url=nfs://server/path/to/media
Iso:/?iso=cd1.iso&url=hd:/?device=/dev/hda
Iso:/?iso=dvd1.iso&url=hd:/directory/?device=/dev/sda2
Iso:/subdir?iso=dvd1.iso&url=nfs://nfs-server/directory&mnt=/nfs/attach/point&filesystem=udf

Usage:
Zypper [--Global options] < commands > [--Command options] [parameters]
Zypper < subcommands > [--Command options] [parameters]

Global options:
--help,-H help.
--version,-V output version number.
--promptids the list of user prompts for the output zypper.
--config,-c < file > Use a configuration file that you specify instead of the default.
--userdata < string > user-defined transaction ID for history and plugins.
--quiet,-Q suppresses normal output and prints only error messages.
--verbose,-V increases the verbosity of the message (debug mode).
--[no-]color If TTY supports the use of a color output.
--no-abbrev,-a Do not abbreviate text in the table.
--table-style,-S table Style (integer).
--non-interactive,-n does not ask for any selection and automatically uses the default reply.
--non-interactive-include-reboot-patches not set the "Suggest reboot" flag
The patches are considered to interact with the user.
--xmlout,-x switches to XML output.
--ignore-unknown,-I ignores the unknown package.

--reposd-dir,-D < folders > use another software source definition file folder.
--cache-dir,-c < folder > use a different folder for all caches.
--raw-cache-dir < folders > Use another raw metadata cache folder.
--solv-cache-dir < folders > Use another Solv file to cache folders.
--pkg-cache-dir < folders > Use another package cache folder.

Software Source options:
--no-gpg-checks ignores the failed GPG check and continues.
--gpg-auto-import-keys automatically trusts and imports the new software source signing key.
--plus-repo,-P <URI> use an additional software source.
--plus-content < tags > extra use of a disabled software source that provides a specific keyword.
Try '--plus-content Debug ' to enable the source indicating that it provides a debug package.
--disable-repositories does not read metadata from a software source.
--no-refresh does not refresh the software source.
--NO-CD ignores the CD/DVD software source.
--no-remote ignores remote software sources.
--releasever Setting the value $releasever in all. Repo files (default: Release version number)

Target options:
--root,-r < directory > operate under a different root directory.
--disable-system-resolvables
The installed package is not read.

Command:
Help, huh? Print Help.
Shell, SH accepts multiple commands at once.

Software source Management:
Repos, LR lists all the software sources that have been defined.
Addrepo, AR Add a new software source.
Removerepo, RR removes the specified software source.
Renamerepo, nr renames the specified software source.
Modifyrepo, Mr Modifies the specified software source.
Refresh, ref refreshes all software sources.
Clean cleans up the local cache.

Service Management:
Service, LS lists all defined services.
AddService, as adds a new service.
Modifyservice, MS modifies the specified service.
RemoveService, RS removes the specified service.
Refresh-services, refs refreshes all services.

Software Management:
Install, in installs the package.
Remove, RM to remove the package.
Verify, ve verifies the dependency integrity of the package.
Source-install, si installs the source code package and its compilation dependency.
Install-new-recommends, INR
Install the new package recommended by the installed package.

Update Management:
Update, up updates the installed package with the new version.
List-updates, Lu lists the available updates.
Patches are required for patch installation.
LIST-PATCHES, LP lists the required patches.
Dist-upgrade, DUP performs the release version upgrade.
Patch-check, pchk check for patches.

Inquire:
Search, SE searches for packages that match a pattern.
Info, if displays the complete information for the specified package.
Patch-info Displays the complete information for the specified patch.
Pattern-info Displays the complete information for the specified set of software.
Product-info displays complete information for the specified product.
Patches, PCH lists all available patches.
Packages, PA lists all available packages.
Patterns, PT lists all available software sets.
Product, PD lists all available products.
What-provides, WP lists the packages that provide the specified functionality.

Package Lock:
Addlock, Al adds a package lock.
Removelock, RL removes a package lock.
Locks, ll lists the current package lock.
Cleanlocks, Cl removes unused locks.

Other commands:
VERSIONCMP, VCMP compares two versions of a string.
Targetos, TOS prints the target operating system ID string.
Licenses print a summary report of the licenses and end-user agreements for installed packages.
Download Download the RPM to the local folder specified by the command line.
Source-download Download the source code RPM to the local folder for all installed packages.

Sub-command:
Subcommand lists the available subcommands.

Enter ' Zypper help <command> ' for assistance with specific commands.

SUSE Linux--zypper Package Management (actual Combat Command Summary)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.