LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-04-2008, 06:04 AM   #1
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Rep: Reputation: 34
Local cache/Temp folder for downloaded RPMS


Where in OPensuse 10.3 are the downloaded rpms stored? If not stored locally by default, how to enable this?
 
Old 06-05-2008, 03:12 PM   #2
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
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")
 
Old 06-06-2008, 02:10 AM   #3
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Original Poster
Rep: Reputation: 34
There were, expectedly, no rpms in the var/lib/zypp directory or any directory with the name sax, cache, zypp.

The man for zypper does not contain an entry for -k switch.
 
Old 06-06-2008, 04:49 AM   #4
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
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.
 
Old 06-06-2008, 06:32 AM   #5
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Original Poster
Rep: Reputation: 34
It's not there in the man on my PC running Opensuse 10.3. Is there some package that I should be installing additionally?

I run zypper -k and I get an "unknown option" error. I run zypper -h and the -k option is not mentioned.

"Strange are the ways of Linux".
 
Old 06-06-2008, 07:11 AM   #6
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
could be a generic man page and Suse customized the actual executable?

If you use Smart as the package manager you should be able to save rpm's with the "remove-packages" option http://labix.org/smart/config-options.

It may possible to use other package managers depending on the repository formats such as yum and synaptic
 
Old 06-07-2008, 03:10 AM   #7
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Original Poster
Rep: Reputation: 34
Thank you. Got SMART working.
 
Old 06-07-2008, 06:20 AM   #8
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247

Rep: Reputation: 31
fyi - Smart will place rpms in /var/lib/smart/packages
 
Old 11-02-2008, 05:15 AM   #9
AnilGadgil
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 11-19-2008, 05:30 AM   #10
htnakirs
Member
 
Registered: Mar 2007
Posts: 239

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by AnilGadgil View Post
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.

Any other ideas?
 
Old 11-22-2008, 11:49 AM   #11
AnilGadgil
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by htnakirs View Post
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.

Any other ideas?
looked up zypper help mr command is in repository handling section and the above solution works for me
 
  


Reply

Tags
cache, download, installing, local, rpms, update, while



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 10:02 AM
Squid - cache incomplete downloaded files zsolt_tuser Linux - Networking 3 08-13-2005 01:24 PM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 04:32 AM
building rpms as non-root user - temp probs frogman Linux - Software 2 11-23-2003 04:41 PM
Temp Folder tfrye Linux - General 3 04-18-2001 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration