openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks » Setting The Refresh Period For Yast Package Manager

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-Nov-2007, 13:51
WJM
Guest
 
Posts: n/a
Post

Just read a nice little tip on the OpenSUSE site on one of the things that was bugging me most when working with the Yast Software Managment.

In a nutshell : How to set the refresh time ! (many thank to poster 'Me', whoever that is )

--


You CAN “tell yast package manager not to refresh repositories every time you want to install something”.
~> zypper mr –help
modifyrepo (mr)

Modify properties of the repository specified by alias.

Command options:
-d, –disable Disable the repository (but don’t remove it)
-e, –enable Enable a disabled repository
-a, –enable-autorefresh Enable auto-refresh of the repository
–disable-autorefresh Disable auto-refresh of the repository

And you can set it from the YaST “Software Repositories” module too.

You even have /etc/zypp/zypp.conf with:
##
## Amount of time in minutes that must pass before another refresh.
##
## Valid values: Integer
## Default value: 10
##
## If you have autorefresh enabled for a repository, it is checked for
## up-to-date metadata not more often than every
## minutes. If an automatic request for refresh comes before
## minutes passed since the last check, the request is ignored.
##
## A value of 0 means the repository will always be checked. To get the oposite
## effect, disable autorefresh for your repositories.
##
## This option has no effect for repositories with autorefresh disabled, nor for
## user-requested refresh.
##
# repo.refresh.delay = 10



  #2 (permalink)  
Old 24-Nov-2007, 11:55
Omega
Guest
 
Posts: n/a
Default

Thanks for the info!
  #3 (permalink)  
Old 26-Nov-2007, 13:38
Zacho
Guest
 
Posts: n/a
Default

Thanks. Default refresh time was bugging me too. Now everything is working fine.
  #4 (permalink)  
Old 29-Jan-2008, 07:05
viajador
Guest
 
Posts: n/a
Default

You just saved me from going back to Ubuntu

BTW: YaST could have an option to change refresh delay without editing the conf file. After all, YaST is THE best tool to prevent users from getting their hands dirty with those files.
  #5 (permalink)  
Old 29-Jan-2008, 22:54
blwest
Guest
 
Posts: n/a
Default

Quote:
You just saved me from going back to Ubuntu

BTW: YaST could have an option to change refresh delay without editing the conf file. After all, YaST is THE best tool to prevent users from getting their hands dirty with those files. [/b]
Oh no, not Ubuntu!!! Silly question, did you set it to lower than 10 or greater than 10?
  #6 (permalink)  
Old 01-Feb-2008, 06:47
Guiman
Guest
 
Posts: n/a
Default

WJM, thanks for the info, but , could you post an example of your zypp.conf because i'm afraid that the changes diden´t work for me, i'm doing something wrong.

Thanks
  #7 (permalink)  
Old 01-Feb-2008, 07:14
WJM
Guest
 
Posts: n/a
Default

Here you go, the only value I've set here is ' repo.refresh.delay = 1080', leaving other settings default.

Cheers,
Wj


## Configuration file for software management
## /etc/zypp/zypp.conf
##
## Boolean values are 0 1 yes no on off true false

[main]

##
## Override the detected architecture
##
## Valid values: i586, i686, x86_64, ppc, ppc64, ia64, s390, s390x, ..
## Default value: Autodetected
##
## ** CAUTION: Only set if you know what you're doing !
## ** Changing this needs a full refresh (incl. download)
## ** of all repository data.
##
# arch = s390

##
## Path where the repo metadata is downloaded and kept.
##
## Valid values: A directory
## Default value: /var/cache/zypp/raw
##
## Changing this needs a full refresh (incl. download) of all repository data
##
# metadatadir = /var/cache/zypp/raw

##
## Path where the known repositories .repo files are kept
##
## Valid values: A directory
## Default value: /etc/zypp/repos.d
##
## Changing this invalidates all known repositories
##
# reposdir = /etc/zypp/repos.d

##
## Path where the processed cache is kept (this is where zypp.db is located)
##
## Valid values: A directory
## Default value: /var/cache/zypp
##
## Changing this needs a full refresh (except download) of all repository data
##
# cachedir = /var/cache/zypp

##
## Whether repository urls should be probed when added
##
## Valid values: boolean
## Default value: false
##
## If true, accessability of repositories is checked immediately (when added)
## (e.g. 'zypper ar' will check immediately)
## If false, accessability of repositories is checked when refreshed
## (e.g. 'zypper ar' will delay the check until the next refresh)
##
# repo.add.probe = false

##
## Amount of time in minutes that must pass before another refresh.
##
## Valid values: Integer
## Default value: 10
##
## If you have autorefresh enabled for a repository, it is checked for
## up-to-date metadata not more often than every <repo.refresh.delay>
## minutes. If an automatic request for refresh comes before <repo.refresh.delay>
## minutes passed since the last check, the request is ignored.
##
## A value of 0 means the repository will always be checked. To get the oposite
## effect, disable autorefresh for your repositories.
##
## This option has no effect for repositories with autorefresh disabled, nor for
## user-requested refresh.
##
repo.refresh.delay = 1080

##
## Whether to consider using a .patch.rpm when downloading a package
##
## Valid values: boolean
## Default value: true
##
## Using a patch rpm will decrease the download size for package updates
## since it does not contain all files of the package but only the changed
## ones. The .patch.rpm is ready to be installed immediately after download.
## There is no further processing needed, as it is for a .delta.rpm.
##
# download.use_patchrpm = true

##
## Whether to consider using a .delta.rpm when downloading a package
##
## Valid values: boolean
## Default value: true
##
## Using a delta rpm will decrease the download size for package updates
## since it does not contain all files of the package but only the binary
## diff of changed ones. Recreating the rpm package on the local machine
## is an expensive operation (memory,CPU). If your network connection is
## not too slow, you benefit from disabling .delta.rpm.
##
# download.use_deltarpm = true

[locking]

## DEPRECATED
## Mimic old-fashioned behavior of locking all foreign vendor packages.
##
## Valid values: boolean
## Default value: false
##
# autolock_untrustedvendor = false
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2