LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-13-2010, 10:20 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Rolling back an upgrade... is this possibe...?


Hi Forum

This is the setting... :

I have

/boot 100 Mb ext4
/ 40 Gb ext4
/home 959.9 Gb ext4

( i do not use swap in a machine with 16 RAM )

In my /home i have /home/alex ( where i keep everything allowing me to tinker with the Distro I want without having to keep backup everything ) and /home/repo ( where i keep a snapshot of [extra], [core], [community] and [custom] ( where i drop stuff that i build from Aur and other sources )

Immagine that my last pacman -Syu ( defining exterior repos to sync in pacman.conf ) b0|2|<3d my wine install... ( some W$ apps stopped working because of a wine regression ) as well as some applications compiled from source.

Is it possible to rollback my last upgrade to the snapshot that I have...?

BRGDS

Alex
 
Old 09-14-2010, 08:21 PM   #2
codecutr
LQ Newbie
 
Registered: Mar 2006
Location: Colorado
Distribution: Ubuntu 10.04
Posts: 3

Rep: Reputation: 1
Cool

Assuming that you have good backups in /home/repo, my suggestion is to copy/backup your current /home directory to another drive (preferably an external one).
Now you can restore your /boot and / directories to their previous state. If you accidentally destroy your /home directory, just restore the /home directory from the external drive to your home drive.
(I always backup my partitions to an external drive. I've had hard disk crashes and external backups saved my butt.)

George
---
There are 10 kinds of people in the world.
Those who understand binary
and those who don't.
 
Old 09-15-2010, 05:25 AM   #3
kgas
LQ Newbie
 
Registered: Nov 2008
Location: Middle East
Distribution: Arch Linux
Posts: 13

Rep: Reputation: Disabled
1. Read the pacman log and note down what updates done to the point where you want to go back.
2. If you did not purge the pacman cache with -Scc, check the previous packages in /var/cache/pacman/pkg directory and down grade the packages accordingly with -U switch (pacaman -U <pkg you want to downgrade with previous version> (if needed uninstall the latest packages)
3. If you don't find the particular package on your cache check out for Arch Rolling Machine, google is your friend.
4. For more such information search Arch forum
 
1 members found this post helpful.
Old 09-15-2010, 08:08 AM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Quote:
Originally Posted by codecutr View Post
Assuming that you have good backups in /home/repo, my suggestion is to copy/backup your current /home directory to another drive (preferably an external one).
Now you can restore your /boot and / directories to their previous state. If you accidentally destroy your /home directory, just restore the /home directory from the external drive to your home drive.
(I always backup my partitions to an external drive. I've had hard disk crashes and external backups saved my butt.)
Hi @codecutr,

Would not be necessary to do so... my /home, where my snapshot lives, in ,/repo, and my stuff lives, in ./alex, is independent from /boot and from /...

it is mounted in /dev/sda3... so I can just blast away /boot -> /dev/sda1, / -> /dev/sda2, reinstall arch without harming anything... anyway, i have dvds ( 6 at all ) with the snapshot in repo... but this ( reinstalling ) was precisely what i was trying to avoid...

But thx anyway...

@kgas, Thx, I will try that...

BRGDS

Alex
 
Old 09-17-2010, 10:17 PM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
To downgrade packages, you'll need to Arch Rollback Machine (if you don't have them stored in /var/cache/pacman/pkg...). I think the ARM is referenced from the "Downgrading" page on the Arch Wiki
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rolling back SSH mrurmil Fedora 2 02-17-2007 05:35 AM
rolling back xforms install corbis_demon Linux - Newbie 2 07-27-2004 03:41 AM
rolling back install corbis_demon Linux - Newbie 1 07-27-2004 03:14 AM
Need to write a rolling back-up script FiSH42 Programming 2 02-18-2004 06:20 AM
CVS: rolling back? mikeshn Linux - Software 2 10-21-2003 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration