Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Newbie question re patching Leap / keeping Leap up-to-date

  1. #1

    Default Newbie question re patching Leap / keeping Leap up-to-date

    I zypper dup to keep Tumbleweed up to date. I will not do this with Leap. Instead, I believe that all I need to do for Leap is:


    YAST --> Online Update


    Is this correct?


    Apologies for a remedial question. I remember the grief of learning my way around Tumbleweed, want to be sure I know how to update Leap properly.


    I will install with the Cinnamon desktop, and so won't have the KDE updater mini-app.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,966

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    To keep Leap proper up-to-date, indeed YaST > Online update or
    Code:
    zypper patch
    is enough.

    But if youhave more repos (like Packman, which most of us have), you have to update there with e.g. with YaST > Software Management, then from the View menu > Repositories; select Packman (example) in the list at right use Right-Click" and choose "Update if a newer version is available". This checks the packages, Continue. Equivalent:
    Code:
    zypper up --repo Packman
    Many do this in one step:
    Code:
    zypper up
    which will do the step explained for Packman for all enabled repos and will include the zypper patch action.
    Henk van Velden

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,236

    Default AW: Newbie question re patching Leap / keeping Leap up-to-date

    You can also use zypper:
    Code:
    zypper up
    or

    Yast ---Software Management---Packages-----All Packages----Update if newer Versions avaible

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    2,860

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    You need to check that, the Package Kit cron job runs daily: /etc/cron.daily/packagekit-background.cron

    If for some reason Package Kit hasn't been installed then, you'll either have to execute "zypper refresh" manually or, in a daily cron job.

  5. #5

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    Quote Originally Posted by dcurtisfra View Post
    You need to check that, the Package Kit cron job runs daily: /etc/cron.daily/packagekit-background.cron
    That cron job is *disabled* by default.

    You can enable/configure it in /etc/sysconfig/packagekit-background to have updates installed automatically.
    Another option for this would be YaST->Online Update Configuration, which sets up a cron job running zypper.

    If for some reason Package Kit hasn't been installed then, you'll either have to execute "zypper refresh" manually or, in a daily cron job.
    Wrong.
    zypper will refresh the repos automatically if necessary.

    And even if you do have PackageKit installed, it will not periodically refresh the repos. (unless you are running some frontend/applet that does it, or you explicitly enable that cron job)
    Last edited by wolfi323; 17-Jan-2018 at 03:57.

  6. #6

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    PS: you probably can install/run pk-update-icon if you want an update applet in Cinnamon.
    (that's the one XFCE uses, but it should work on any desktop that has a system tray I think)


    Code:
    wolfi@amiga:~/Desktop> LANG=C zypper info pk-update-icon
    Loading repository data...
    Reading installed packages...
    
    Information for package pk-update-icon:
    ---------------------------------------
    Repository     : openSUSE-42.3-0                             
    Name           : pk-update-icon                              
    Version        : 2-6.2                                       
    Arch           : x86_64                                      
    Vendor         : openSUSE                                    
    Installed Size : 56.2 KiB                                    
    Installed      : No                                          
    Status         : not installed                               
    Source package : pk-update-icon-2-6.2.src                    
    Summary        : Software Update Notifier based on PackageKit
    Description    :                                             
        pk-update-icon displays notifications and an icon in the tray area of the
        panel
        when package updates are available.
    Last edited by wolfi323; 17-Jan-2018 at 04:22.

  7. #7

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    Thank you for the feedback, Henk, Sauerland, dcurtisfra and wolfi323!

    My impression from reading these threads is that:

    Code:
    zypper ref; zypper up
    (and emphatically not zypper dup)

    ... should cover all bases for me. The zypper ref might not be necessary, but won't hurt.

    If you disagree, please let me know!

  8. #8
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,236

    Default AW: Newbie question re patching Leap / keeping Leap up-to-date

    zypper ref is done 10 Minutes after the last Refresh was done automatically:
    ##
    ## 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 opposite
    ## 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
    /etc/zypp/zypp.conf

  9. #9

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    Quote Originally Posted by Sauerland View Post
    zypper ref is done 10 Minutes after the last Refresh was done automatically:

    /etc/zypp/zypp.conf
    In other words, "zypper ref" only makes any sense if your repos have been refreshed less than 10 minutes ago.
    But even then, it should normally not be needed, unless you encounter problems (packages not found) because the repos actually changed meanwhile.

    Sure, it doesn't harm, but it takes some time and can cause (unnecessary) network traffic...
    Last edited by wolfi323; 17-Jan-2018 at 05:45.

  10. #10

    Default Re: Newbie question re patching Leap / keeping Leap up-to-date

    Then it sounds like:

    Code:
    zypper up
    will do the trick. Just like Tumbleweed, but without the critical 'd' in front of the 'up.' Merci!

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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