【发布时间】:2016-01-20 07:16:26
【问题描述】:
在这个命令 zypper -h 中我的问题没有有用的论据。
谁能帮助我或告诉我如何在 suse 11.2 中安装 yum 而不是 zypper?
Usage:
zypper [--global-options] <command> [--command-options] [arguments]
Global Options:
--help, -h Help.
--version, -V Output the version number.
--promptids Output a list of zypper's user prompts.
--config, -c <file> Use specified config file instead of the default.
--quiet, -q Suppress normal output, print only error
messages.
--verbose, -v Increase verbosity.
--no-abbrev, -A Do not abbreviate text in tables.
--table-style, -s Table style (integer).
--rug-compatible, -r Turn on rug compatibility.
--non-interactive, -n Do not ask anything, use default answers
automatically.
--non-interactive-include-reboot-patches
Do not treat patches as interactive, which have
the rebootSuggested-flag set.
--xmlout, -x Switch to XML output.
--reposd-dir, -D <dir> Use alternative repository definition file
directory.
--cache-dir, -C <dir> Use alternative directory for all caches.
--raw-cache-dir <dir> Use alternative raw meta-data cache directory.
--solv-cache-dir <dir> Use alternative solv file cache directory.
--pkg-cache-dir <dir> Use alternative package cache directory.
Repository Options:
--no-gpg-checks Ignore GPG check failures and continue.
--gpg-auto-import-keys Automatically trust and import new repository
signing keys.
--plus-repo, -p <URI> Use an additional repository.
--disable-repositories Do not read meta-data from repositories.
--no-refresh Do not refresh the repositories.
--no-cd Ignore CD/DVD repositories.
--no-remote Ignore remote repositories.
Target Options:
--root, -R <dir> Operate on a different root directory.
--disable-system-resolvables
Do not read installed packages.
Repository Management:
repos, lr List all defined repositories.
addrepo, ar Add a new repository.
removerepo, rr Remove specified repository.
renamerepo, nr Rename specified repository.
modifyrepo, mr Modify specified repository.
refresh, ref Refresh all repositories.
clean Clean local caches.
Service Management:
services, ls List all defined services.
addservice, as Add a new service.
modifyservice, ms Modify specified service.
removeservice, rs Remove specified service.
refresh-services, refs Refresh all services.
Software Management:
install, in Install packages.
remove, rm Remove packages.
verify, ve Verify integrity of package dependencies.
source-install, si Install source packages and their build
dependencies.
install-new-recommends, inr
Install newly added packages recommended
by installed packages.
Update Management:
update, up Update installed packages with newer versions.
list-updates, lu List available updates.
patch Install needed patches.
list-patches, lp List needed patches.
dist-upgrade, dup Perform a distribution upgrade.
patch-check, pchk Check for patches.
Querying:
search, se Search for packages matching a pattern.
info, if Show full information for specified packages.
patch-info Show full information for specified patches.
pattern-info Show full information for specified patterns.
product-info Show full information for specified products.
patches, pch List all available patches.
packages, pa List all available packages.
patterns, pt List all available patterns.
products, pd List all available products.
what-provides, wp List packages providing specified capability.
Package Locks:
addlock, al Add a package lock.
removelock, rl Remove a package lock.
locks, ll List current package locks.
cleanlocks, cl Remove unused locks.
Other Commands:
versioncmp, vcmp Compare two version strings.
targetos, tos Print the target operating system ID string.
licenses Print report about licenses and EULAs of
installed packages.
【问题讨论】:
-
zypper install yum能得到什么? -
SUSE(OpenSUSE 和 SLES)系列 GNU/Linux 发行版的包管理器是 zypper,它不容易被 yum 替代,yum 是 Red Hat、CentOS 和 Fedora 的首选包管理器。您应该做的是考虑为什么需要更换 zypper,然后,如果确实如此,您可能希望将您的问题发布到 Unix & Linux,这比 Stack Overflow 更适合您的问题(因为您的问题有与the topic这里的编程无关。
-
不,它不起作用。也许我没有正确的带有 yum 的 repo。
-
好的,我知道该怎么做了!我可以使用
zypper -R <dir>更改根路径。然后软件将安装在我想要的目录中 -
zypper -R 不改变根路径:
-R, --no-force-resolution Do not force the solver to find a solution, let it ask.