You are not logged in.

#1 2010-01-05 00:13:52

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

How to Install Arch Using Packages Local Packages [SOLVED]

I am migrating to a new hard drive, and would like to make the installation as painless as possible...

I believe on my current installation I have a complete and up-to-date cache, and am wondering how I can use these packages during the installation from the LiveCD.
I would like to be able copy the cache to a directory on the USB drive and have the Arch installer use those packages during installation. How do I do this?

I assume I have to mount the drive somewhere, but where exactly? And the packages won't be on the root directory of the device.

EDIT: It appears the output of pacman -Q and ls /var/cache/pacman/pkg are different. I have not cleaned the package cache (other than pacman -Sc). Is there any reason for this? For example the only package listed in the cache with z is zip, but in the query both zip an zlib show up. I'm worried that perhaps some of the base packages aren't there.f

Last edited by egan (2010-01-05 03:51:16)

Offline

#2 2010-01-05 01:59:39

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: How to Install Arch Using Packages Local Packages [SOLVED]

1. You can create a local repo.
2. You can copy them over to your newly created /var/cache directory.

To make it more painless you should save a backup of all your installed package info in a text file by querying pacman. Then it's just a matter of pacman -S $(cat list) on the new install.

To know more please read the pacman wiki page. 

egan wrote:

I assume I have to mount the drive somewhere, but where exactly? And the packages won't be on the root directory of the device.

Anywhere.

egan wrote:

It appears the output of pacman -Q and ls /var/cache/pacman/pkg are different. I have not cleaned the package cache (other than pacman -Sc). Is there any reason for this? For example the only package listed in the cache with z is zip, but in the query both zip an zlib show up. I'm worried that perhaps some of the base packages aren't there.

Did you uncomment "KeepInstalled" in pacman.conf before running pacman -Sc ?

Regards


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2010-01-05 03:36:46

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: How to Install Arch Using Packages Local Packages [SOLVED]

egan wrote:

EDIT: It appears the output of pacman -Q and ls /var/cache/pacman/pkg are different. I have not cleaned the package cache (other than pacman -Sc). Is there any reason for this? For example the only package listed in the cache with z is zip, but in the query both zip an zlib show up. I'm worried that perhaps some of the base packages aren't there.

I'm pretty sure the cache would only have the packages that have been downloaded since you first installed, so anything that hasn't gotten updated since then wouldn't be in your cache. I'm not sure if that's the difference you're seeing, but I do notice in your example zlib hasn't been updated since Dec 2008.

If those are the only things missing, you should have most of the packages in the cache which will still save you a lot of downloading.

Offline

#4 2010-01-05 03:50:34

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: How to Install Arch Using Packages Local Packages [SOLVED]

Thanks guys, looks like I have the information I need. All the missing packages are indeed old ones.

Offline

#5 2010-01-05 03:51:48

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: How to Install Arch Using Packages Local Packages [SOLVED]

You can just do pacman -U /mnt/oldharddrive/var/cache/pacman/pkg/*.tar.gz, and pacman will add missing dependencies as needed.  You'll probably need to -Sy first to avoid conflicts.  That should catch most of what you used to have installed.  Then diff the pacman -Q outputs from your old and new harddrives to see what you may be missing.

Last edited by tavianator (2010-01-05 03:52:09)

Offline

Board footer

Powered by FluxBB