You are not logged in.
Pages: 1
Hi, everybody,
Are there recommended precautions before running pacman -Syu ? My installation is new, but I've been reading a lot of posts about how the system got messed up after an upgrade. Seems to be a price of the "bleeding edge". How am I supposed to manage my upgrades gracefully?
Offline
Hi, everybody,
Are there recommended precautions before running pacman -Syu ? My installation is new, but I've been reading a lot of posts about how the system got messed up after an upgrade. Seems to be a price of the "bleeding edge". How am I supposed to manage my upgrades gracefully?
Useually upgrades go smoothly, every once in awhile, like all rolling release distros(Arch isn't really bleeding edge), a sneaky bug gets over looked and it messes with a few systems, usually within a few days one of the developers fix it before it becomes too big of an issue. pacman -Suy is perfectly safe as is, if something goes wrong, you always have backups of your previously installed packages and can downgrade.
Offline
Also make sure you read all messages that appear during upgrade. Sometimes you need to adjust some configuration files, and things like that.
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
Watch the forums for any breakage related to your hardware/favorite apps. and wait until the problems are resolved before upgrading,
Personally I have never had a breakdown after a pacman -Syu only after absent minded tinkering.
Offline
if something goes wrong, you always have backups of your previously installed packages and can downgrade.
Do I? Could you be more specific about the backups?
Offline
They reside in /var/cache/pacman/pkg.
You can get rid of all of them with the command "pacman -Scc", or you can only remove the packages of the applications which are no longer installed on your system with "pacman -Sc". Therefore *DO NOT* run "pacman -Scc" if you want to be safer.
You can downgrade to an earlier version using the U flag in pacman, which allows you to install local packages. So if you have an earlier version of a package in /var/cache/pacman/pkg, and you want to install it, just do:
pacman -U /var/cache/pacman/pkg/package-version.tar.gz
That's it
Last edited by finferflu (2008-03-04 09:44:43)
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
For instance, the upgraded kernel did me no good, but the fallback option in GRUB just died along with the rest of the system. If I'm going to upgrade the kernel in the future, I have to know how to retrace my steps.
Offline
if something goes wrong, you always have backups of your previously installed packages and can downgrade.
Do I? Could you be more specific about the backups?
packages are cached in /var/cache/pacman/pkg/
Offline
For instance, the upgraded kernel did me no good, but the fallback option in GRUB just died along with the rest of the system. If I'm going to upgrade the kernel in the future, I have to know how to retrace my steps.
when it comes to kernel, you have two easy solutions:
1. boot into your existing system from the install CD and fix the problem
2. create a kernel26-Llama known to work and keep it so you are sure you'll be always able to boot your machine
Offline
2. create a kernel26-Llama known to work and keep it so you are sure you'll be always able to boot your machine
Is there a how-to?
Offline
I think this is a good starting point: http://wiki.archlinux.org/index.php/Mki … _the_image
Have you Syued today?
Free music for free people! | Earthlings
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery
Offline
2. create a kernel26-Llama known to work and keep it so you are sure you'll be always able to boot your machine
Is there a how-to?
There is http://wiki.archlinux.org/index.php/Ker … n_with_ABS
Actually, it should be quite simple, just use kernel26 PKGBUILD+Files, rename your package and change the relevant files accordingly (PKGBUILD, .install, etc...) and that should do it. You may want to have a look on custom kernels in AUR as well to see some examples.
Offline
They reside in /var/cache/pacman/pkg.
You can get rid of all of them with the command "pacman -Scc", or you can only remove the packages of the applications which are no longer installed on your system with "pacman -Sc". Therefore *DO NOT* run "pacman -Scc" if you want to be safer.
I always make a backup of var/cache/pacman/pkg before a pacman -Scc. Just to be sure.
0 Ok, 0:1
Offline
When installing/updating important packages (like kernel) it might be a smart idea to install them separately, when you install them along with kde/gnome/xfce for instance, there is a bigger chance for brakage. You could, in such cases, download all upates first with the pacman -Sw (downlaod only switch) and then install one by one, also be sure you always read all install messages carefully! Lasts me to say: learn man pacman (pacman manual) by head, it'll safe you a lot of time...;)
Offline
1. boot into your existing system from the install CD and fix the problem
I guess my problem is related with the kernel upgrade, so how I can downgrade it?? I booted from the Install CD, but I'm still clueless of what to do
Last edited by RDDO (2008-03-04 13:58:01)
Offline
bangkok_manouel wrote:1. boot into your existing system from the install CD and fix the problem
I guess my problem is related with the kernel upgrade, so how I can downgrade it?? I booted from the Install CD, but I'm still clueless of what to do
go to /var/cache/pacman/pkg and reinstall your previous kernel:
#pacman -U previous_kernel.pkg.tar.gz
Offline
This thread would be a good candidate for a sticky.
Offline
It's all in the wiki. Just saying.
/path/to/Truth
Offline
To backup a known-working kernel, is it sufficient to
sudo cp /boot/kernel26{,-backup}.image
Or are there hard-coded paths in the kernel image, so one really has to use mkinitcpio to create a new copy?
Offline
Another great tip is to pacman -Syu often (once a day will largely suffice ). Rationale: the smaller the upgrades, the better it will go. You often see posts about users borking their systems with an upgrade, but it turns out they leave it be for 6 months or more. That's asking for problems.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Just check the output of pacman when you do an upgrade. Sometimes you will need to update a configuration file, but only rarely. Do not simply run an -Syu, then shut down the system without checking if you need to change anything.
Really though, you shouldn't worry too much (good to be prepared though). Upgrades are a good thing and shouldn't break your system. If there's something really wrong with an upgrade, you can, as described above, just downgrade the package and wait for the fixed package.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
In addition to all of those roll back concepts, if your root was on lvm, then you could create a snapshot partition, and add an entry to grub to boot that one in case something breaks. That might be faster than having to move the old configuration files back.
Last edited by vogt (2008-09-09 16:03:47)
Offline
To backup a known-working kernel, is it sufficient to
sudo cp /boot/kernel26{,-backup}.image
Or are there hard-coded paths in the kernel image, so one really has to use mkinitcpio to create a new copy?
Just copying a working kernel image isn't going to be OK, as each kernel is *tied* to its loadable modules, and the module-loader checks to see if the module it's loading is compiled with/for the current kernel [people call it version magic]. Nowadays (I mean in recent kernels) we also need to have a klibc version that should be recent enough (but we needn't worry too much as it's interface, IMO, doesn't change that frequently...).
So for kernel-downgrades, you should have previous working kernel26.pkg.tar.gz & kernel-headers.pkg.tar.gz in your cache, to be on the safe side.
P.S. Look up these wiki entries for further info abt. klibc.
http://en.wikipedia.org/wiki/Early_user_space
http://en.wikipedia.org/wiki/Klibc
Last edited by Onwards (2008-09-09 16:25:16)
Offline
In addition to all of those roll back concepts, if your root was on lvm, then you could create a snapshot partition, and add an entry to grub to boot that one in case something breaks. That might be faster than having to move the old configuration files back.
Let's hope that tux3 actually achieves what it's author wishes for it to be !! That would make snapshotting pretty trivial. I am personally _dying_ to use it.
Last edited by Onwards (2008-09-09 16:21:31)
Offline
Pages: 1