Arch Linux: Difference between revisions
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
* http://unix.stackexchange.com/questions/6934/package-management-strategy-with-pacman | * http://unix.stackexchange.com/questions/6934/package-management-strategy-with-pacman | ||
* Install openssh: '''pacman -Sy openssh''' where "-S" is the same as "--sync", synchronize packages. | * Install openssh: '''pacman -Sy openssh''' where "-S" is the same as "--sync", synchronize packages. | ||
:<syntaxhighlight lang='bash'> | |||
sudo pacman -S openssh | |||
sudo systemctl enable sshd | |||
sudo systemctl start sshd | |||
ps -ef | grep sshd | |||
ip a | |||
</syntaxhighlight> | |||
* [https://www.howtogeek.com/740578/how-to-update-arch-linux/ How to Update Arch Linux] | * [https://www.howtogeek.com/740578/how-to-update-arch-linux/ How to Update Arch Linux] | ||
* The command '''pacman -Sy''' synchronizes the package list with the master server. This server/client model also allows the user to download/install packages with a simple command, complete with all required dependencies1. However, it is important to note that when installing packages in Arch, you should avoid refreshing the package list without upgrading the system (for example, when a package is no longer found in the official repositories). In practice, do not run pacman -Sy package_name instead of '''pacman -Syu''' package_name, as this could lead to dependency issues. See [https://wiki.archlinux.org/title/Pacman pacman]. | |||
* [https://wiki.archlinux.org/title/Creating_packages Creating packages] | |||
* [https://fileinfo.com/extension/pkg.tar.zst How to open a PKG.TAR.ZST file] | |||
:<syntaxhighlight lang='bash'> | |||
sudo pacman -U YourPackageName.pkg.tar.zst | |||
</syntaxhighlight> | |||
== yay == | |||
* yay is an AUR helper that depends on pacman. It uses pacman to manage and resolve dependencies for packages installed from the AUR. yay also uses the pacman configuration file (/etc/pacman.conf) and shares the local package database with pacman. | |||
* https://aur.archlinux.org/packages/yay, https://github.com/Jguer/yay | |||
* [https://wiki.archlinux.org/title/AUR_helpers AUR helpers] which includes yay | |||
* [https://www.makeuseof.com/install-and-use-yay-arch-linux/ How to Install and Use yay on Arch Linux] | |||
== pacman command == | |||
* https://wiki.archlinux.org/title/Pacman | |||
* https://wiki.archlinux.org/title/Pacman/Tips_and_tricks | |||
* [https://devhints.io/pacman cheat sheet] | |||
* [https://www.makeuseof.com/getting-started-with-pacman-commands/ The Ultimate Guide to Pacman Commands on Arch Linux] | |||
* Do we normally need to add sudo beforec running pacman? | |||
** Yes, you normally need to use sudo when running pacman commands that modify the system, such as installing, updating, or removing packages. This is because these actions require administrative privileges. | |||
** For example, to update your system using pacman, you would run the command sudo pacman -Syu. Similarly, to install a package, you would use the command sudo pacman -S package_name. | |||
** However, some pacman commands do not require administrative privileges and can be run without sudo. For example, you can use the pacman -Q command to view information about installed packages without using sudo. | |||
<ul> | |||
<li>To view a list of all explicitly installed packages (i.e., packages that were not installed as dependencies) | |||
<pre> | |||
pacman -Qe | |||
</pre> | |||
To view a list of all installed packages from the AUR, you can use the command '''pacman -Qm''' | |||
<li>display information such as the package version, description, dependencies, and more | |||
<pre> | |||
pacman -Qi r | |||
</pre> | |||
<li>display a list of all files installed by the package | |||
<pre> | |||
pacman -Ql r | |||
</pre> | |||
<li>How do I update packages installed by pacman? | |||
<pre> | |||
pacman -Syu | |||
</pre> | |||
</ul> | |||
== Package cache == | == Package cache == | ||
[https://www.makeuseof.com/how-to-clean-package-cache-in-arch-linux/ How to Clean the Package Cache in Arch Linux] | [https://www.makeuseof.com/how-to-clean-package-cache-in-arch-linux/ How to Clean the Package Cache in Arch Linux] | ||
== Install DEB packages == | |||
[https://www.makeuseof.com/install-deb-packages-arch-linux/ How to Install DEB Packages in Arch Linux] | |||
= System update = | = System update = | ||
Line 50: | Line 104: | ||
* [https://linuxconfig.org/check-manjaro-version Check Manjaro Version]. '''cat /etc/lsb-release''' | * [https://linuxconfig.org/check-manjaro-version Check Manjaro Version]. '''cat /etc/lsb-release''' | ||
* [https://linuxconfig.org/how-to-update-and-upgrade-manjaro-linux How to Update and Upgrade Manjaro Linux]. '''sudo pacman -Syu''' | * [https://linuxconfig.org/how-to-update-and-upgrade-manjaro-linux How to Update and Upgrade Manjaro Linux]. '''sudo pacman -Syu''' | ||
* [https://news.itsfoss.com/manjaro-linux-experience/ I Ditched Ubuntu for Manjaro: Here's What I Think After a Week] | |||
= Garuda Linux = | |||
* https://garudalinux.org/ | |||
* https://en.wikipedia.org/wiki/Garuda_Linux, [https://distrowatch.com/dwres.php?resource=popularity DistroWatch] | |||
* Reviews from [https://itsfoss.com/garuda-linux-review/ itsfoss], [https://www.slant.co/options/38688/~garuda-linux-review slant] | |||
* [https://averagelinuxuser.com/garuda-linux-after-install/ 10 Essential Things to do After Installing Garuda Linux] | |||
= SteamOS = | |||
[https://www.makeuseof.com/key-differences-steamos-and-arch-linux/ 5 Key Differences Between SteamOS and Arch Linux] |
Latest revision as of 15:42, 28 June 2023
Resource
- Should You Install Arch Linux as a Server?
- 7 Reasons Why I Use Manjaro Linux And You Should Too
- How To Convert DEB Packages Into Arch Linux Packages
- GUI to swtich kernels. https://wiki.manjaro.org/index.php/Manjaro_Kernels
- Install Google Chrome by installing Yaourt (pacman front) first
- The advantage of a rolling release is you can get the latest version software, such ddclient.
Install/remove packages
How to Install and Remove Packages in Arch Linux
Pacman
- https://wiki.archlinux.org/title/Pacman
- http://unix.stackexchange.com/questions/6934/package-management-strategy-with-pacman
- Install openssh: pacman -Sy openssh where "-S" is the same as "--sync", synchronize packages.
sudo pacman -S openssh sudo systemctl enable sshd sudo systemctl start sshd ps -ef | grep sshd ip a
- How to Update Arch Linux
- The command pacman -Sy synchronizes the package list with the master server. This server/client model also allows the user to download/install packages with a simple command, complete with all required dependencies1. However, it is important to note that when installing packages in Arch, you should avoid refreshing the package list without upgrading the system (for example, when a package is no longer found in the official repositories). In practice, do not run pacman -Sy package_name instead of pacman -Syu package_name, as this could lead to dependency issues. See pacman.
- Creating packages
- How to open a PKG.TAR.ZST file
sudo pacman -U YourPackageName.pkg.tar.zst
yay
- yay is an AUR helper that depends on pacman. It uses pacman to manage and resolve dependencies for packages installed from the AUR. yay also uses the pacman configuration file (/etc/pacman.conf) and shares the local package database with pacman.
- https://aur.archlinux.org/packages/yay, https://github.com/Jguer/yay
- AUR helpers which includes yay
- How to Install and Use yay on Arch Linux
pacman command
- https://wiki.archlinux.org/title/Pacman
- https://wiki.archlinux.org/title/Pacman/Tips_and_tricks
- cheat sheet
- The Ultimate Guide to Pacman Commands on Arch Linux
- Do we normally need to add sudo beforec running pacman?
- Yes, you normally need to use sudo when running pacman commands that modify the system, such as installing, updating, or removing packages. This is because these actions require administrative privileges.
- For example, to update your system using pacman, you would run the command sudo pacman -Syu. Similarly, to install a package, you would use the command sudo pacman -S package_name.
- However, some pacman commands do not require administrative privileges and can be run without sudo. For example, you can use the pacman -Q command to view information about installed packages without using sudo.
- To view a list of all explicitly installed packages (i.e., packages that were not installed as dependencies)
pacman -Qe
To view a list of all installed packages from the AUR, you can use the command pacman -Qm
- display information such as the package version, description, dependencies, and more
pacman -Qi r
- display a list of all files installed by the package
pacman -Ql r
- How do I update packages installed by pacman?
pacman -Syu
Package cache
How to Clean the Package Cache in Arch Linux
Install DEB packages
How to Install DEB Packages in Arch Linux
System update
- https://wiki.archlinux.org/title/System_maintenance
- How can I responsibly run updates automatically on Arch Linux? Arch makes no secret of the fact that it expects you to administer your system. Part of that responsibility is being present for the update cycle.
$ grep installed /var/log/pacman.log [2021-03-24T20:50:42-0400] [ALPM] installed xf86-video-vmware (13.3.0-2) [2021-03-24T20:50:42-0400] [ALPM] installed linux510-virtualbox-guest-modules (6.1.18-18) [2021-03-24T20:50:42-0400] [ALPM] installed virtualbox-guest-utils (6.1.18-2) [2021-03-24T20:50:42-0400] [ALPM] installed libdnet (1.12-13) [2021-03-24T20:50:42-0400] [ALPM] installed libmspack (1:0.10.1alpha-3) [2021-03-24T20:50:42-0400] [ALPM] installed uriparser (0.9.4-1) [2021-03-24T20:50:42-0400] [ALPM] installed gdk-pixbuf-xlib (2.40.2-1) [2021-03-24T20:50:42-0400] [ALPM] installed open-vm-tools (6:11.2.5-2) [2021-03-24T20:50:42-0400] [ALPM] installed xf86-input-vmmouse (13.1.0-5) [2021-03-24T20:50:42-0400] [ALPM] installed spice-vdagent (0.21.0-1) [2021-03-24T21:01:58-0400] [ALPM] installed r (4.0.4-1) [2021-03-24T21:11:41-0400] [ALPM] installed tk (8.6.11.1-1) ... # I update the whole system. R has been updated from 4.0.4 to 4.1.0 $ sudo pacman -Syu $ grep "4.1.0" /var/log/pacman.log [2021-07-31T11:54:02-0400] [ALPM] upgraded mpfr (4.1.0-1 -> 4.1.0-2) [2021-07-31T11:55:33-0400] [ALPM] upgraded r (4.0.4-1 -> 4.1.0-1)
Manjaro
- Check Manjaro Version. cat /etc/lsb-release
- How to Update and Upgrade Manjaro Linux. sudo pacman -Syu
- I Ditched Ubuntu for Manjaro: Here's What I Think After a Week
Garuda Linux
- https://garudalinux.org/
- https://en.wikipedia.org/wiki/Garuda_Linux, DistroWatch
- Reviews from itsfoss, slant
- 10 Essential Things to do After Installing Garuda Linux