SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In general they're in /var/lib/ and I think by default Suse's Yast uses libzypp so in some sub-directory of /var/lib/zypp
I think by default rpms are not kept and there doesn't seem to be a way to enable keeping them in Yast's repository manager but using the zypper command line there is a "-k" option when adding repositories (see the man page - "man zypper")
From "man zypper" see "-k, --keep-packages
Enable RPM files caching for the repository. "
Repository Management
zypper is able to work with YaST, YUM, and aptrpm repositories, ZENworks 7 Linux Management, ZENworks 6.6.x Linux Management servers, as well as local files.
addrepo (ar) [options] <URI> <alias>
addrepo (ar) [options] <FILE.repo>
Add a new repository specified by URI and assign specified alias to it or specify URI to repo file.
Newly added repositories have auto-refresh disabled by default (except for repositories imported from a .repo, having the auto-refresh enabled). To enable auto-refresh, use the --refresh option of the modifyrepo command.
Also, this command does not automatically refresh the newly added repositories. The repositories will get refreshed when used for the first time, or you can use the refresh command after finishing your modifications with *repo commands. See also METADATA REFRESH POLICY section for more details.
-r, --repo <FILE.repo>
Read URI and alias from specified .repo file
-t, --type <TYPE>
Type of repository (yast2, rpm-md, or plaindir). There are several aliases defined for these types: yast2 - susetags, yast, YaST, YaST2, YAST; rpm-md - repomd, rpmmd, yum, YUM; plaindir - Plaindir.
-d, --disable
Add the repository as disabled.
-c, --check
Probe given URI.
-C, --nocheck
Don't probe URI, probe later during refresh.
-n, --name
Specify descriptive name for the repository.
-k, --keep-packages
Enable RPM files caching for the repository.
-K, --no-keep-packages
Disable RPM files caching.
For creating rpms on local directory /var/cache/zypp/packages of all updates:
1. give command, as root, zypper mr -ka ((m-modify r-repository k-keep packages a-all)) before updating any packages.
For creating rpms on local directory /var/cache/zypp/packages of all updates:
1. give command, as root, zypper mr -ka ((m-modify r-repository k-keep packages a-all)) before updating any packages.
This will do the trick
Didn't need to install any app till today.
Tried the command "zypper mr -ka", and I get "unknown option mr"
Tried with "-mr" and get more errors.
Tried looking at the zyper --help results, and there is no mr option as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.