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”
[…] 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?
Try using a the following code to search that folder:
ls /dev | grep cdI 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 ?
Yes, I believe that it is. You can just unmount the file if it’s wrong by typing
umount /mnt/pkgsand trying another one.