You are not logged in.

#1 2009-10-18 23:38:40

schnootle
Member
Registered: 2009-10-18
Posts: 4

updates and breaking system

Hi Everyone

I have used arch full time for about 9 months, and for the most part loved it - i have cycled through many others and liked arch the most. My problem is i have twice rather catastrophically broken things from a full system update.

I realize that releasing packages early is part of the arch approach, but is there a way i can keep my system mostly up to date while minimizing that risk of breaking things? (i try to do work on my computer as well as tinker). Like is there an older more stable set of packages, or does pacman always use the bleeding edge ones?.

Thanks for any help guys.

Offline

#2 2009-10-18 23:44:10

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: updates and breaking system

Yes there are an older set of packages kept in the package cache, if you haven't clean any package cache from the /var/cache/pacman/pkg directory. You can always downgrade packages to a more stable one if the current one breaks.

Offline

#3 2009-10-18 23:52:10

schnootle
Member
Registered: 2009-10-18
Posts: 4

Re: updates and breaking system

Thank Acecero

Yeah i managed to make use of that one of the times it broke, as i could boot from the live cd, chroot into my installation and roll back to an older kernel. But the last time it happened i couldn't even chroot from the live cd, so i couldn't access the package cache to roll back.

I guess what i hoped might exist is a way to set pacman to use packages that are a bit older when it does the update, that way you always stay a bit behind the bleeding edge

Offline

#4 2009-10-18 23:58:53

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: updates and breaking system

schnootle wrote:

Thank Acecero

Yeah i managed to make use of that one of the times it broke, as i could boot from the live cd, chroot into my installation and roll back to an older kernel. But the last time it happened i couldn't even chroot from the live cd, so i couldn't access the package cache to roll back.

I guess what i hoped might exist is a way to set pacman to use packages that are a bit older when it does the update, that way you always stay a bit behind the bleeding edge

If its the kernel your talking about, you can always compile a custom kernel to an older version.

There is also a feature for that. You can use the IgnorePkg variable from your pacman.conf.  Details are here.

Offline

#5 2009-10-19 00:08:04

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: updates and breaking system

Breakages are really quite rare. What exactly have you had problems with in the past?


neutral

Offline

#6 2009-10-19 00:23:37

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: updates and breaking system

Arch also has an lts kernel that is officially supported now. Sounds like what you may be looking for.

Offline

#7 2009-10-19 00:27:18

schnootle
Member
Registered: 2009-10-18
Posts: 4

Re: updates and breaking system

Breakages are really quite rare. What exactly have you had problems with in the past?

Its happened twice from updates for me, one was an issue with the kernel update i could fix be using an older one. The second time it wouldn't boot, with errors along the lines of "too many symbolic links" which i imagine was due to some link linking to itself or something - this also stopped me chrooting to roll back.  I spent ages and couldn't track it down so i just ended up reinstalling. I guess its just made me lose my nerve with updates, when i need my computer for work

Offline

#8 2009-10-19 00:28:14

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: updates and breaking system

sand_man wrote:

Breakages are really quite rare. What exactly have you had problems with in the past?

+1. I update once or twice a day, and rarely get breakages at all, some minor annoyances here and there. Am wondering what it is that breaks your system so bad you have to use a boot CD....


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2009-10-19 00:44:01

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: updates and breaking system

ngoonee wrote:

Am wondering what it is that breaks your system so bad you have to use a boot CD....

schnootle wrote:

...an issue with the kernel update i could fix be using an older one...

Offline

#10 2009-10-19 01:21:38

raul_nds
Member
From: Lisbon, Portugal
Registered: 2007-06-28
Posts: 258

Re: updates and breaking system

I rarely get breakages. In fact I only remember having breakages when using the testing repo.

And it was Allan who broke it.

But I remember when every update of xorg-server brought chaos behind it, I just added it to the IgnorePkg and worked like a charm.
That and not cleaning the cache very often smile

Offline

#11 2009-10-19 02:01:25

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: updates and breaking system

Pacmatic makes you aware of issues that usually lead to a broken system, before things start breaking.

Offline

#12 2009-10-19 14:11:48

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: updates and breaking system

ARM (Arch Rollback Machine) is great for rollbacks, IgnorePkg keeps the broken packages from being installed at the next upgrade, but that all depends on being able to get into the system.
If your /root partition isn't too big (i.e. you have separate /var and /home partitions), you could take a snapshot of /root before the upgrade using fsarchiver running from a SystemRescueCD. Then if things break completely you can restore.
Or you could look into filesystems with snapshot capability (ZFS, BTRFS), but I don't know to what extent they are ready to be used on Linux, and if you can use them to restore things from the outside.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#13 2009-10-19 15:19:58

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: updates and breaking system

Clone your system to another partition, keep data (or home) in another partition. Also create a common /var/cache/pacman/pkg. Update your clone system only when it is safe. When one is borked, just use the other, but keep on updating the borked one until it is OK. If it is really bad, just clone the working one over. No down time.

Offline

Board footer

Powered by FluxBB