This method of compiling the kernel is the traditional method common to all distributions. Although Arch Linux is used this time, you can use the equivalent tools in your distribution.
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root!" | |
exit 1 | |
fi | |
# Synchronizes the repository databases and updates the system's packages, excluding "local" | |
# packages | |
sudo pacman -Syu |
A collection of customizations gathered over time. Several of them come from different parts of the great ArchWiki.
Create the hook /etc/pacman.d/hooks/pkg-list.hook
[Trigger]
Operation = Install
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "⚠️ This script must be run as root! Please, try again." | |
exit 1 | |
fi | |
echo "✔️ Getting the latest updates..." | |
apt-get update | |
apt-get upgrade -y |