Table of Contents |
---|
1. Basic Linux Commands - Arch Linux |
2. Install Specific Kernal |
3. Remove Specific Kernal |
4. Installing Packages from source |
5. Installing Yay AUR Helper |
update sys repo and sync:
sudo pacman -Syy
Refresh Mirrors or when you have a corrupted database on your system:
sudo pacman -Syyu
upgrade system normal update purposes:
sudo pacman -Syu
To "rollback" your updates from these repositories.when you need to downgrade a package to an older version by force:
sudo pacman -Syuu
Autoremove:
sudo pacman -Scc
Autoclean:
sudo pacman -Sc
Remove Orphaned:
sudo pacman -Qtdq
Repo configure:
sudo nano /etc/pacman.conf
Check sys vulnerabilities:
grep -r . /sys/devices/system/cpu/vulnerabilities/
Mirror Links:
sudo nano /etc/pacman.d/mirrorlist
pacman -Sy linux linux-headers
pacman -Sy linux-lts linux-lts-headers
pacman -Sy linux-hardened linux-headers-hardened
pacman -Sy linux-zen linux-zen-headers
After installing Linux kernal on Arch , regenerate the grub.cfg with the command below:
grub-mkconfig -o /boot/grub/grub.cfg
Then Reboot your system:
pacman -Rsu linux linux-headers
pacman -Rsu linux-lts linux-lts-headers
pacman -Rsu linux-hardened linux-headers-hardened
pacman -Rsu linux-zen linux-zen-headers
After removing Linux kernal on Arch , regenerate the grub.cfg with the command below:
grub-mkconfig -o /boot/grub/grub.cfg
Then Reboot your system:
To install a third-party software package in Arch Linux access the AUR package repository page and search for the package you need to install. In our case, We are going to install Google Chrome in our Arch Linux system:
Click on “Download Snapshot” in the right pane under “Package Actions“. This will download the tarball of Google Chrome in your local ‘Downloads’ folder:
Navigate to the ‘Downloads’ folder and extract the tarball:
tar -xvf google-chrome.tar.gz
Navigate the newly created google-chrome folder with the cd command:
cd google-chrome
To view the directory’s contents, use the ls command Be sure to catch a glance of several files:
ls
Next, run the makepkg command:
makepkg
The makepkg tool automates the process of converting the source code into binaries by acting as a compiler. In this case, the makepkg command instructs the System to generate a native Arch Linux package for Google Chrome:
Inside the snapshot folder, you’ll discover a newly generated native arch package for Google Chrome:
google-chrome-68.0.3440.106-1-x86_64.pkg.tar.xz
Switch to root user and run the command below to install Google Chrome:
pacman -U google-chrome*.tar.gz
To start off, log in as a sudo user and run the command below to download the git package:
sudo pacman -S git
Next, clone the yay git repository:
cd /opt
sudo git clone https://aur.archlinux.org/yay-git.git
Change the file permissions from the root the sudo user:
sudo chown -R useryou:useryou ./yay-git
To build the package from PKGBUILD, navigate into the yay folder:
cd yay-git
Next, build the package using the makepkg command below:
makepkg -si
How to Use Yay in Arch Linux and Manjaro: Once you have yay installed, you can upgrade all the packages on your system using the command:
sudo yay -Syu
As with any other AUR helpers, you can install the packages using the command:
sudo yay -S gparted
To remove a package using yay use the command:
sudo yay -Rns package_name
To clean up all unwanted dependencies on your system, issue the command.
sudo yay -Yc