-
-
Save bglopez/c23f925e9094e7864dffb26dd30d3d09 to your computer and use it in GitHub Desktop.
Convert Manjaro to Arch
This file contains 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 | |
# | |
# Tested on freshly installed Manjaro 22.0.5 Gnome. | |
pamac build trizen | |
cat >/tmp/convert.sh <<EOF | |
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm pamac-gtk web-installer-url-handler manjaro-hello libpamac pamac-cli libpamac-flatpak-plugin 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 | |
read -p "Remove manjaro-system from HoldPkg in /etc/pacman.conf" | |
$EDITOR /etc/pacman.conf | |
pacman -Qq | grep manjaro | xargs pacman -R --noconfirm | |
pacman -Syyu bash | |
pacman -S linux && pacman -Qq | grep linux[0-9] | xargs pacman -R --noconfirm; grub-mkconfig -o /boot/grub/grub.cfg | |
EOF | |
chmod +x /tmp/convert.sh | |
sudo /tmp/convert.sh | |
rm /tmp/convert.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment