Categories
Arch Linux HowTo Linux Posts

Installing packages from CD in Arch Linux

Okay, so you have Arch Linux installed and let’s say you’re wifi isn’t working and you need the package “iwlwifi-3945-ucode-15.32.2.9-2-any.pkg.tar.gz” to fix this but you don’t have a wired connect. What do you do? Blast in your Arch cd, mount it, mount the packages sqfs file and install using pacman.

Mount cdrom:

mkdir /mnt/cdrom/
mount /dev/cdrom /mnt/cdrom/

Mount *-pkgs.sqfs:

mkdir /mnt/pkgs/
mount -o loop core-pkgs.sqfs /mnt/pkgs/
cd /mnt/pkgs/

Install pkg.tar.gz:

pacman -U package-name.pkg.tar.gz

6 replies on “Installing packages from CD in Arch Linux”

Awesome tip!
Just an observation:
where you wrote
mount -o loop core-pkgs.sqfs /mnt/pkgs/
it should be
mount -o loop /mnt/cdrom/core-pkgs.sqfs /mnt/pkgs/

Best regards!

I cannot find cdrom under /dev/ I am using the core-dual cd 2011.08.19. Is there something I’m missing here?

I suppose the latest ArchLinux CD (19-08-2011) contents changed a lot because I couldn’t find the packages file you mentioned here. I found another one with even a different extension ! I found it on: [cdrom-mount-location]/arch/any/repo-core-any.sfs. Is this the correct packages file ?

Leave a Reply

Your email address will not be published. Required fields are marked *