-
-
Save kabirnayeem99/716492f23d819da13096781fc0ba8da5 to your computer and use it in GitHub Desktop.
Convert Manjaro to Arch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html, who cares | |
# assuming you run as root | |
pamac install trizen | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring | |
pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ https://www.archlinux.org/packages/community/any/lsb-release/download/ | |
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist | |
mv /etc/pacman.conf.pacnew /etc/pacman.conf | |
# following line enables multilib repository | |
sed -ie 's/#\(\[multilib\]\)/\1/;/\[multilib\]/,/^$/{//!s/^#//;}' /etc/pacman.conf | |
read -p "Uncomment mirrors from your country (press any key)" | |
$EDITOR /etc/pacman.d/mirrorlist | |
pacman -Qq | grep manjaro | xargs pacman -R --noconfirm | |
pacman -Syyu | |
pacman -S bash | |
pacman -S linux && pacman -Qq | grep linux[0-9] | xargs pacman -R --noconfirm; grub-mkconfig -o /boot/grub/grub.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment