this post was submitted on 04 Feb 2025
108 points (96.6% liked)

Linux

49701 readers
882 users here now

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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I’m planning to install Arch Linux for the first time. Any recommendations on setup, must-have applications, or best practices? Also, what’s something you wish you knew before switching to Arch?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 3 days ago (17 children)

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.

[–] [email protected] 7 points 3 days ago (14 children)
[–] [email protected] 4 points 3 days ago (13 children)

Rust-based and actively developed

[–] [email protected] 1 points 3 days ago (2 children)

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.

[–] [email protected] 6 points 3 days ago (3 children)

Pacman is the only standard package manager for Arch. Arch recommends against using third party package managers, including Yay.

[–] [email protected] 1 points 54 minutes ago (1 children)

Sure unless you want to use AUR and now what do they recommend?

[–] [email protected] 1 points 48 minutes ago
[–] [email protected] 1 points 2 days ago (1 children)

Ya. Ok. But pacman does not let you use the AUR. Using the AUR is one did the primary reasons to choose Arch.

So, if you want to use the AUR, you need to use something like yay or paru. And, if you do, you no longer need to use pacman.

To be clear to the newbies, pacman -Syu updates your entire system ( except packages from the AUR ). yay -Syu updates your entire system, including packages from the AUR.

If you just ran yay -Syu, running pacman -Syu will report that there is “nothing to do” since your system will already be up to date.

The same is true if you sub paru for yay above.

[–] [email protected] 2 points 2 days ago (1 children)

You definitely do not need to use any pacman wrappers to build a package from the AUR. Those tools make it easy, yes, but are not required.

Building a package can be as simple as

  • git clone AURpackagehere
  • cd AURpackagehere
  • makepkg -si
[–] [email protected] 1 points 2 hours ago (1 children)

Um. Ya, I guess. Ok.

First, how do you keep that package up to date?

Real question though is, do you really think that is better than “yay -S AURpackagehere” or even “paru AURpackagehere”?

[–] [email protected] 1 points 2 hours ago (1 children)

To update the package, you use git to pull the latest branch code and repeat the process. You should double check if there are dependency changes though.

Like I said, its easier with a pacman wrapper, but not necessary.

[–] [email protected] 1 points 2 minutes ago

Yes. Thank you. My question (or point) was how you know that the package needs to be updated? As you point out, I need to do that for dependencies as well.

You are certainly correct though. You can pull AUR packages and build them without yay or paru.

[–] [email protected] 2 points 3 days ago (2 children)

Is there a chance that Arch says that so they don't have to take on the responsibility of endorsing yay while also acknowledging its prevalence?

Like if Nintendo made a statement saying they recommend against third party mods or repairs that deal with joycon stick drift because they don't want to be held accountable or contacted about issues consumers run into a result of them.

[–] [email protected] 4 points 3 days ago

My understanding is this:

It's just the principle of AUR wrappers. Yes they are very useful, but anyone and their uncle can put a package in AUR name it whatever they want as long as it's not taken. AUR wrapper makes it easier to install things without knowing much, but manually searching for something, finding it, and installing it involves conscious choices. Arch cannot be responsible for people installing malware from a software they recommended, that's why it's kept this way intensionally.

Imagine if yay/paru came with the os, or could be installed from pacman, then people would just recommend doing that to new users and then they might just install whatever and break the system a lot more.

[–] [email protected] 2 points 3 days ago

They acknowledge many wrappers, not just yay. However, none are officially supported.

Arch Wiki

load more comments (10 replies)
load more comments (10 replies)
load more comments (12 replies)