Results 1 to 7 of 7

Thread: Setting The Refresh Period For Yast Package Manager

  1. #1
    WJM Guest

    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. #2
    Omega Guest

    Default

    Thanks for the info!

  3. #3
    Zacho Guest

    Default

    Thanks. Default refresh time was bugging me too. Now everything is working fine.

  4. #4
    viajador Guest

    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. #5
    blwest Guest

    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. [/b]
    Oh no, not Ubuntu!!! Silly question, did you set it to lower than 10 or greater than 10?

  6. #6
    Guiman Guest

    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. #7
    WJM Guest

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO 3.5.2