Last active
September 1, 2023 17:54
-
-
Save Lili1228/bff8a821076f5406b15fe9be528957b6 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 | |
# SPDX-License-Identifier: GPL-2.0-or-later | |
# | |
# 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 manjaro-application-utility | |
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring python-manjaro-sdk | |
pacman -U https://www.archlinux.org/packages/core/x86_64/{lsb-release,pacman{,-mirrorlist}}/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 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