Install slackware instead! But if you must, yay.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Start from the install guide on the wiki. It'll branch out fast and just follow all the links and read. If something goes wrong, check if you missed something on the wiki. It's an amazing resource.
Also, look up your hardware on the wiki before you start.
I wish I new how to easily install an AUR package manager when I first started.
Step 1: go to the AUR and choose a package manager. I recommend paru, but there are plenty of others.
Step 2: install git using pacman
sudo pacman -S git
Step 3: copy the git clone URL for paru and pull it
git clone https://aur.archlinux.org/paru.git
Step 4: CD into the new directory
cd paru
Step 5: install paru
makepkg -si
Now when you find a package from the AUR you want, you can easily install it.
paru -S [package]
Also, when you update your system, you only need to run paru -Syu
. You don't need to run both pacman -Syu
and paru -Syu
.
Why paru specifically?
Rust-based and actively developed
Rust based is not a feature it is a slogan. Yay is the defacto standard and also actively developed. That being said use whatever works for you and AUR.
Also, just paru
is equivalent to paru -Syu
Great advice.
Btw you don't need -S to install a package, just
paru packagename
Works fine
- ALWAYS avoid partial upgrades, lest you end up bricking your system: https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported
- The Arch Wiki is your best friend. You can also use it offline, take a look at
wikiman
: https://github.com/filiparag/wikiman - It doesn't hurt to have the LTS kernel installed as a backup option (assuming you use the standard kernel as your chosen default) in case you update to a newer kernel version and a driver here or there breaks. It's happened to me on Arch a few times. One of them completely borked my internet connection, the other one would freeze any game I played via WINE/Proton because I didn't have resize BAR enabled in the BIOS. Sometimes switching to the LTS kernel can get around these temporary hiccups, at least until the maintainers fix those issues in the next kernel version.
- The AUR is not vetted as much as the main package repositories, as it's mostly community-made packages. Don't install AUR packages you don't 100% trust. Always check the PKGBUILD if you're paranoid.
It doesn’t hurt to have the LTS kernel installed as a backup option (assuming you use the standard kernel as your chosen default) in case you update to a newer kernel version and a driver here or there breaks.
I had a similar issue that was resolved by swapping to the LTS kernel. Learning about using a bootable Arch USB and chrooting into your install to make repairs would be a good thing for OP to know
Make backups of your important files, or use a separate home partition. When I used arch, more than once I had a bricked install after doing updates. The last straw for me was when after updating my network completely went out. I switched to fedora and haven't had issues for 2+ years. Also, (this goes for every distro, but more so arch than others) NEVER update if you don't have at least some time in front of you in case something happens. Arch was definitely a good learning experience and it was fun at first tweaking everything, but the drawbacks in stability got a bit old after a while. The AUR is a godsend and it's the best thing ever, you should also be using an AUR helper like Yay to make your life easier.
I wish I knew then that debbie does the trick for me
The archinstaller script is pretty good if you're just needing a basic setup. Ive been really happy with a btrfs partion from the recommended disk layout, then using btrfs snapshots + grub bootloader to load from snapshots. You can also create a hook on pacman so that you create a snapshot when you upgrade packages.
Since you didn't mention your experience, id recommend looking at the various desktop environments so you know which one to pick during install. You can ofc change later.
And read the arch docs. They are very good and have a lot of time invested into them. If you find you don't have the patience to read them then you're probably going to want to look at a different OS. Good luck!
Read https://wiki.archlinux.org/title/System_maintenance before you go your first pacman -Syu
And when people tell you that you shouldn't use aur helpers like yay to blindly install/upgrade aur packages, there's a reason for it. Read the PKGBUILDs.
Those who are (wisely) suggesting snapshots, do you guys use a different partitions for data and OS? Because if you do revert to an older snapshot after a while, you'd loose new data, too (unless you recover it from current state)?
archinstall's default btrfs layout has I think 4-5 separate subvolumes (I'm not running btrfs anymore so can't check) but at the very least I remember it has:
- /
- /var
- /home
being separate subvolumes and mountpoints, you can just use a previous snapshot from 1 without rolling back others
Related to the snapshotting stuff, timeshift-autosnap is pretty helpful, hooks into pacman and takes a snapshot before installing/updating packages.
Personally I found btrfs and the snapshots helpful when starting to use arch, but now that I know how not to blow things up, it has been stable enough for me I just felt ext4 was easier.
Cool.