Results 1 to 8 of 8

Thread: Will openSUSE 12.2 keep old Kernels or replace them upon updates? also rpm cache question

  1. #1

    Default Will openSUSE 12.2 keep old Kernels or replace them upon updates? also rpm cache question

    Hi,
    I am more or less a newbie to openSUSE, (well have previously run it in VBox for a while) but am now going to put it onto real hardware. I wonder if anyone could please tell me if I need to manually remove old kernels after updates, also the old/previous config files, or does this distro just replace them without the user having to bother with this?, I would also like to apply the exact same question to the rpm package cache, does YaST/Zypper keep a cache in the same way as Synaptic in Ubuntu? (which always seems to need deleting even when the "auto delete after 1 day" option is checked)

    In Ubuntu, one of the 1st apps I would install is Ubuntu Tweak, which cleans the deb cache very well, it also removes previous Kernels + purges the previous seperate config files.

    Any replies greatly appreciated, thank you.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates? also rpm cache question

    Quote Originally Posted by icekool View Post
    Hi,
    I am more or less a newbie to openSUSE, (well have previously run it in VBox for a while) but am now going to put it onto real hardware. I wonder if anyone could please tell me if I need to manually remove old kernels after updates, also the old/previous config files, or does this distro just replace them without the user having to bother with this?, I would also like to apply the exact same question to the rpm package cache, does YaST/Zypper keep a cache in the same way as Synaptic in Ubuntu? (which always seems to need deleting even when the "auto delete after 1 day" option is checked)

    In Ubuntu, one of the 1st apps I would install is Ubuntu Tweak, which cleans the deb cache very well, it also removes previous Kernels + purges the previous seperate config files.

    Any replies greatly appreciated, thank you.
    By default, you do not need to remove old kernels or rpm files, that is taken care of for you my default. It is possible to change this by editing the file /etc/zypp/zypp.conf file as root. For instance, some prefer to modify the setting to actaully maintain more than one kernel, just in case a kernel update does not work as you like. Its not very common, but has been said to occur. Anyone that needs the ability to edit this file and any other system file, have a look at this bash script:

    SYSEdit - System File Editor - Version 1.00 - Blogs - openSUSE Forums

    Use SYSEdit to find and edit any system file with a fully windowed file selection menu.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates? also rpm cache question

    Quote Originally Posted by icekool View Post
    I would also like to apply the exact same question to the rpm package cache, does YaST/Zypper keep a cache in the same way as Synaptic in Ubuntu? (which always seems to need deleting even when the "auto delete after 1 day" option is checked)

    In Ubuntu, one of the 1st apps I would install is Ubuntu Tweak, which cleans the deb cache very well, it also removes previous Kernels + purges the previous seperate config files.

    Any replies greatly appreciated, thank you.
    rpm caching is disable by default. You can enable it with:
    Code:
    zypper mr -k (or --keep-packages)
    and disable it with
    Code:
    zypper mr -K (or --no-keep-packages)
    either globally if followed by option --all or for each repo if followed by a repo name, alias or number.

    The packages are stored in subdirectories of /var/cache/zypp/packages.

    If you're interesting in keeping and deleting packages at a later point, you might want to have a look at this script: http://forums.opensuse.org/english/o...rpm-cache.html

  4. #4

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates? also rpm cache question

    Thanks very much for your replies, I'm delighted to know that caching is disabled by default, I hate any build up of anything unecessary & am mildly fanatical about keeping a clean system.
    thanks

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates?also rpm cache question

    On 2012-09-05 23:46, icekool wrote:

    > also the old/previous config files, or does this
    > distro just replace them without the user having to bother with this?,


    Some config files are replaced, some remain for you to handle manually. Sometimes the old config is
    renamed as .rpmorig, sometimes the new one is renamed as .rpmnew. In both cases you have to decide
    what to do, manually.

    There is a service, rcrpmconfigcheck, that runs on every boot and lists the files needing attention
    - however, you do not see it with a graphical boot.

    > would also like to apply the exact same question to the rpm package
    > cache, does YaST/Zypper keep a cache in the same way as Synaptic in
    > Ubuntu? (which always seems to need deleting even when the "auto delete
    > after 1 day" option is checked)


    You mean the rpm database cache, or the packages themselves? There is a 5 days backup copy handled
    by a cron job.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  6. #6

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates?also rpm cache question

    Quote Originally Posted by robin_listas View Post
    You mean the rpm database cache, or the packages themselves? There is a 5 days backup copy handled
    by a cron job.
    I think I meant the packages themselves ie. after an update (apps, libraries etc), btw, whats a 'cron job'?

  7. #7
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,906

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates?also rpm cache question

    Quote Originally Posted by icekool View Post
    I think I meant the packages themselves ie. after an update (apps, libraries etc), btw, whats a 'cron job'?
    It's a task that is auto triggered with the specified interval :
    Crontab – Quick Reference | Admin's Choice
    Best regards,
    Greg

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Will openSUSE 12.2 keep old Kernels or replace them upon updates?also rpm cache question

    On 2012-09-16 18:46, icekool wrote:

    > I think I meant the packages themselves ie. after an update (apps,
    > libraries etc), btw, whats a 'cron job'?


    rpms are by default deleted just after they are installed.
    Cron jobs are tasks that run at a scheduled time.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

Posting Permissions

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