LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , , , , , , ,

Reply
 
Thread Tools
Old 06-04-2008, 07:04 AM   #1
htnakirs
Member
 
Registered: Mar 2007
Posts: 236
Thanked: 7
Local cache/Temp folder for downloaded RPMS


[Log in to get rid of this advertisement]
Where in OPensuse 10.3 are the downloaded rpms stored? If not stored locally by default, how to enable this?
htnakirs is offline     Reply With Quote
Old 06-05-2008, 04:12 PM   #2
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247
Thanked: 0
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")
google01103 is offline     Reply With Quote
Old 06-06-2008, 03:10 AM   #3
htnakirs
Member
 
Registered: Mar 2007
Posts: 236
Thanked: 7

Original Poster
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.
htnakirs is offline     Reply With Quote
Old 06-06-2008, 05:49 AM   #4
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247
Thanked: 0
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.
google01103 is offline     Reply With Quote
Old 06-06-2008, 07:32 AM   #5
htnakirs
Member
 
Registered: Mar 2007
Posts: 236
Thanked: 7

Original Poster
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".
htnakirs is offline     Reply With Quote
Old 06-06-2008, 08:11 AM   #6
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247
Thanked: 0
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
google01103 is offline     Reply With Quote
Old 06-07-2008, 04:10 AM   #7
htnakirs
Member
 
Registered: Mar 2007
Posts: 236
Thanked: 7

Original Poster
Thank you. Got SMART working.
htnakirs is offline     Reply With Quote
Old 06-07-2008, 07:20 AM   #8
google01103
Member
 
Registered: May 2006
Distribution: Suse 10.2 x64
Posts: 247
Thanked: 0
fyi - Smart will place rpms in /var/lib/smart/packages
google01103 is offline     Reply With Quote
Old 11-02-2008, 06:15 AM   #9
AnilGadgil
LQ Newbie
 
Registered: Jun 2007
Posts: 2
Thanked: 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
AnilGadgil is offline  
Tag This Post , , , , , , , , ,
Reply With Quote
Old 11-19-2008, 06:30 AM   #10
htnakirs
Member
 
Registered: Mar 2007
Posts: 236
Thanked: 7

Original Poster
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?
htnakirs is offline     Reply With Quote
Old 11-22-2008, 12:49 PM   #11
AnilGadgil
LQ Newbie
 
Registered: Jun 2007
Posts: 2
Thanked: 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
AnilGadgil is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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/Novell 0 08-13-2006 11:02 AM
Squid - cache incomplete downloaded files zsolt_tuser Linux - Networking 3 08-13-2005 02:24 PM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 05:32 AM
building rpms as non-root user - temp probs frogman Linux - Software 2 11-23-2003 05:41 PM
Temp Folder tfrye Linux - General 3 04-18-2001 09:33 AM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration