[arch-general] Uninstalling single package from i686 archroot without cleaning
All, The i686 archroot on the x86_64 box worked perfectly building i686 TDE. However, as I tweak packages, I need to 'uninstall' a package from the rw-layer without cleaning the entire archroot. Since this is i686 on a x86_64 box how do I properly chroot the archroot so that I can run pacman -R package name? Can I somehow: mount --bind some_dev $CHROOT/dev mount -t proc none $CHROOT/proc mount -t sysfs none $CHROOT/sys cd $CHROOT some_chroot_cmd So that the i686 system will be functional enough to remove a package? I have seen the Arch64_FAQ page discussing the linux32 wrapper working with i686 chroots created by installing with i686 ISO "quickinstall", but this setup is just an i686 archroot. (will it work?) I want to avoid cleaning the archroot or deleting and recreating a new one just to test minor changes to package content adjustments due the setup requiring several hundred dependencies and packages to rebuild. What say the experts? -- David C. Rankin, J.D.,P.E.
On Tue, 28 Jan 2014 15:13:17 -0600 "David C. Rankin" <drankinatty@suddenlinkmail.com> wrote:
All,
The i686 archroot on the x86_64 box worked perfectly building i686 TDE. However, as I tweak packages, I need to 'uninstall' a package from the rw-layer without cleaning the entire archroot. Since this is i686 on a x86_64 box how do I properly chroot the archroot so that I can run pacman -R package name?
Can I somehow:
mount --bind some_dev $CHROOT/dev mount -t proc none $CHROOT/proc mount -t sysfs none $CHROOT/sys cd $CHROOT some_chroot_cmd
So that the i686 system will be functional enough to remove a package? I have seen the Arch64_FAQ page discussing the linux32 wrapper working with i686 chroots created by installing with i686 ISO "quickinstall", but this setup is just an i686 archroot. (will it work?)
I want to avoid cleaning the archroot or deleting and recreating a new one just to test minor changes to package content adjustments due the setup requiring several hundred dependencies and packages to rebuild.
What say the experts?
If your host is on Arch, you can do: pacman -R <pkgname> --arch i686 --root $CHROOT or install the Arch Install Scripts and chroot: pacman -S arch-install-scripts arch-chroot $CHROOT
On 01/29/2014 12:55 PM, Jadon Bennett wrote:
If your host is on Arch, you can do: pacman -R <pkgname> --arch i686 --root $CHROOT
Bingo. Thank you Jadon. That is exactly what I needed. I had read the options in man pacman, but did not snap to the fact that it would work for a 'archroot' that was not a fully mounted arch install. Since the only interface to the archroot was through 'makechrootpkg' and 'arch-nspawn' I for some reason thought a direct pacman call would not work in this situation. I'll give it a shot, but still have that uneasy feeling.... I did manage to get past the issue last night by fixing PKGBUILDs, rebuilding, and reinstalling -- rather than removing. -- David C. Rankin, J.D.,P.E.
participants (2)
-
David C. Rankin
-
Jadon Bennett