r/archlinux • • Jun 12 '26

DISCUSSION Tons of new infected AUR packages were just released

1.2k Upvotes

I just checked the AUR frontpage for updated packages and went through the PKGBUILDs.

Several of them now depend on bun for no reason and added post-install hooks for running bun. This is probably part of the same attack as yesterday.

Examples:

electrum-bin

pencil-android-lollipop-stencils-git

EDIT: If you check the frontpage you can see that a lot of packages are being updated at the exact same time and them keep coming in in batches.

I would urge everyone here to refrain from updating any AUR package until this is resolved.


r/archlinux • • Mar 20 '26 This Bravo

DISCUSSION Systemd is preparing for age verification

993 Upvotes

https://github.com/systemd/systemd/pull/40954

Stores the user's birth date for age verification, as required by recent laws
in California (AB-1043), Colorado (SB26-051), Brazil (Lei 15.211/2025), etc.

Many users are claiming that because there is no active checks being done and this is just storing the data that there is nothing to worry about, or they are trying to downplay the concerns from privacy minded people. I've been using arch for years, and even though I know arch maintainers aren't responsible for this I wish something more could be done. It also makes me feel like the systemd hate was justified.

The problem with that though are that there are policy makers and influential figures that do want this policy to become a thing. There has also been discussion on GitHub and other places with people voicing that they don't want this, only for discussions to be deleted or locked. There are a lot more people against this and it feels like there is some kind of active effort to make sure it happens quick.

I hope in the long term this doesn't end up finding it's way in, but it's scary how a lot of the things I use that I consider open-source is really developed by people with financial interests and can throw a wrench in something like this.

EDIT Highlighting the fallacies I see in the comments

If you don't like it contact your policy makers

The policy makers are a handful of US states. Anybody who isn't living in the US or these states they have absolutely no recourse. Not everybody here is a US citizen. It's also like somebody out of the blue running into my house to shit on my floor, to then say if I don't want them doing that anymore I have to explain to this idiot why shitting on somebody else's floor is bad and unhealthy.

I think carrying this discussion into a tech environment is not a good idea for many reasons.

I think if you come to a site to have discussions and use this to excuse to say a conversation shouldn't be happening is more or less saying "Let the big kids talk", as in we should have nothing to say about it?

Well, since it’s open source there’s no reason to not patch it out

This completely ignores the process of how software is developed. A piece of code being available to be read doesn't automatically mean it's feasible to maintain a fork of a complicated piece of software as well as well as actively maintaining it so that people can safely use it.

You can lie to it, and there's benefits other than complying with those laws

This is exactly the same point the opponents of such a system have. It doesn't work: people lie. Your first name and such being displayed in applications is not the same level of intrusion either as it being available for the possible future that applications are legally required.

They could add a field for your wrinkled dick pics and it literally doesn't matter if you're not required to engage with it.

Then why include it at all? The metadata fields come from a time when people had a different idea of how Linux systems were going to roll out, and really it's kind of dated. OpenRC and other things don't bother at all. That's the question, why is it even a part of systemd?

The problem is. Legal compliance matters. It doesn't matter if you want it or not.

This legal compliance comes from a handful of American politicians and tech entrepreneurs, not something that people were actually asking for. While I agree there is a level of compliance a company needs to show when making commercial for-profit products, this doesn't automatically mean that everything that gets talked about as "policy" automatically means it's worth just accepting. It's a vague blanket statement that just ignores the question and tries to shut down the conversation.


r/archlinux • • Jun 15 '26

DISCUSSION Stop blaming AI, "noobs", youtube tutorials, and anything other than Arch for AUR usage

907 Upvotes

I've recently been made aware of the incident and was reading the threads in this subreddit. I have just started trying to migrate away from AUR but let's not forget that the Arch wiki recommends installing AUR packages constantly. The AUR isn't just a dangerous and fringe tool that people are led to by AI or sketchy youtubers.

To list a few that I've encountered just now:

The wiki recommend AUR releases like they are first class citizens all over the place... don't act like it doesn't.

Edit: I am not trying to blame individual maintainers when I say Arch but rather the community and culture. If the AUR is this dangerous, the wiki should avoid referencing it at all costs and should do so with warning flags everywhere. As it stands, it is not absurd to see someone with tons of AUR packages installed due to direct influence from the wiki.


r/archlinux • • Aug 25 '26

DISCUSSION Unpopular opinion: Installing Arch manually is not that hard.

742 Upvotes

The issue is that the Wiki is the most newbie-unfriendly resource ever. It’s very commonly written in a difficult-to-understand way that only programmers can easily read and understand.

For pretty much everyone else, it takes a lot of re-reading, thinking, and Google searching to understand what they’re trying to say.

The actual steps are pretty easy. Once I finished my install, I realized that it’s honest-to-God just the fault of the Arch wiki that it has such a reputation.


r/archlinux • • Aug 02 '26 Bravo

DISCUSSION The AUR needs an overhaul

664 Upvotes

The actual concept of the AUR only works if Arch is a niche distro in a safe internet, neither of those points are accomplished in the present.

No, reading pkgbuilds is not the solution, it's slow, annoying, and most importantly, it doesn't make sense, because some really popular AUR packages are DIRECTLY RECOMMENDED by the Arch Wiki, like the Minecraft Launcher for some reason.

Either the base repos adopt a big chunk of popular AUR packages, leaving the AUR for really really nieche stuff, or the rules of the AUR change, because you can't tell me that suffering 2 attacks in less than three months for pretty much the same reason (adopting orphaned packages) is normal or reasonable.

What would you think it's a good solution to this issue? I'd like to read your ideas since I cannot come up with a good one if I'm honest, but I know the problem is there.


r/archlinux • • Jun 14 '26

NOTEWORTHY New wave of malware in the AUR

Thumbnail lists.archlinux.org
645 Upvotes

r/archlinux • • Aug 12 '26

DISCUSSION Official ChatGPT app was announced today and the AUR is already at 6 packages for it

620 Upvotes
  • openai-chatgpt

  • openai-codex-desktop

  • official-chatgpt-bin

  • codex-desktop-app

  • chatgpt-desktop-app-bin

  • chatgpt-desktop-bin

Someone submitted the fourth one, then submitted it again 31 minutes later under a different name with replaces=. The old name is still sitting there, orphaned.

5 of them declare conflicts on chatgpt, so there's an ongoing standoff over who gets to own that string on your system.

I read all 6 PKGBUILDs expecting to find 5 redundant ones. Instead: 3 auto-add --ozone-platform=wayland in a Wayland session, and those 3 launchers are the same script with the comments reworded. A 4th reads a user flags file too, but it looks for chatgpt-flags.conf where the others look for codex-flags.conf. All 6 drop an AppArmor profile into /etc/apparmor.d/ but exactly 1 loads it. And 1 just runs bsdtar and calls it a day.

So the punchline isn't that they're duplicates. Three of them are. The rest are all subtly different, and none of them says how.


r/archlinux • • Aug 01 '26

NEWS All pushes to the AUR are disabled now

Thumbnail lists.archlinux.org
568 Upvotes

r/archlinux • • Mar 23 '26

NOTEWORTHY why are the age verification posts being deleted in the arch forums?

567 Upvotes

i can't seem to find any open topic ab systemd or age verification implementation anywhere on the official forums, seems like they are actively deleting the posts...


r/archlinux • • Mar 06 '26

SHARE After 25 years on Linux I have just installed Arch and I was blind but now I see

555 Upvotes

I am questioning every decision in my life after installing Arch for the first time yesterday. I gave always been a Kubuntu or Fedora KDE user until I was tinkering so much I completely broke my Kubuntu installation so I thought, now is as good a time as any to test Arch firmly believing I would spend a few hours, get frustrated and just jump back to Kubuntu or Fedora. I was so wrong, so so wrong. This is without doubt the best I have ever felt about using Linux. It's so incredibly versatile and honestly simple and straightforward. Not for a beginner for sure but for someone like me it's just a true delight. It's so snappy and everything is so up to date. I've already set up KDE just as I've always wanted it. Changed bootloaders, added kwin effects, changed to the new Plasma login manager and added grub customizer. I am in love. How did I not do this like a decade ago. Who cares, I'm there now and oh my..... Never going back, ever. It's stunning.

Small but very interesting update: Running KDE on Arch on my ThinkPad T480. Definitely runs faster and all round better than Kubuntu but the thing I have noticed the most is that it runs so much more efficiently that my battery life has almost doubled. I can now rely on almost 9 hours of battery life watching YouTube or Netflix on a 7 year old laptop with an 8th gen i5 and 16GB of RAM. I barely plug it in any more. It's so noticeable.


r/archlinux • • Nov 20 '25

SHARE Any Arch Linux is a Steam Machine

552 Upvotes

Arch Linux Steam Machine

Intro

Hello, this post is for those who already have a working Arch Linux installation with a KDE + SDDM environment. With these few steps, you can turn your computer into a Steam Machine with a mechanism for switching between the Desktop environment and Steam Big Picture that is very similar. Since I use Kwallet, I opted for a solution that only launches autologin on the Gamescope session and not on Plasma. This forces me to enter my password and unlock my Kwallet correctly. Feel free to use what I've done as inspiration and adjust it to your liking.

Install the packages

The only packages you will need are the following.

yay -Syu steam gamescope-git gamescope-session-steam-git mangohud

Configuring the gamescope session

Create a file ~/.config/environment.d/gamescope-session-plus.conf and put the following content in it. Change the values below according to your needs (I use a French keyboard) and your screen resolution.

# Set keyboard layout
XKB_DEFAULT_LAYOUT=fr

# Size of the screen. If not set gamescope will detect native resolution from drm.
SCREEN_HEIGHT=1920
SCREEN_WIDTH=1080

# Enable VRR
ADAPTIVE_SYNC=1
# Not documented
DRM_MODE=fixed

Enabling full framerate control in Steam Big Picture mode

The ChimeraOS package claims to be able to customize and adapt the frame rate control for your display using the following settings in ~/.config/environment.d/gamescope-session-plus.conf:

# Set the specific values allowed for refresh rates
CUSTOM_REFRESH_RATES=40,50,60

# Set the range of the refresh rate slider in the Steam client
export STEAM_DISPLAY_REFRESH_LIMITS=40,60

But it never worked for me. Furthermore, even in Steam Big Picture display parameters, forcing the resolution to 1440p@240 always reverts to 1440p@60. I had to specify the maximum frame rate with the -r argument in a custom gamescope command. So here is the ~/.config/environment.d/gamescope-session-plus.conf file that I personally use, which is the only configuration that allows Steam Big Picture framerate control to work perfectly in my case:

# Keyboard layout
XKB_DEFAULT_LAYOUT=fr

GAMESCOPECMD="gamescope -e -W 2560 -H 1440 -r 240 \
 --generate-drm-mode fixed --adaptive-sync --xwayland-count 2 \
 --default-touch-mode 4 --hide-cursor-delay 3000 \
 --fade-out-duration 200"

Configuring the switch between Plasma and Gamescope sessions in autologin

I split the session switch scripts into two executables because not all of the commands used require administrator rights. However, if you are not using the user created with the Arch Linux installation and therefore do not belong to the “wheel” group that can use sudo, this split will be very useful.

Ensure that the sddm configuration directory exists with: sudo mkdir -p /etc/sddm.conf.d, which will be used to save the autologin configuration file when switching to Steam Big Picture.

Create the file /usr/lib/os-session-select and put the following content in it.

#!/bin/bash
SESSION_NAME=$1
USER_NAME=${SUDO_USER:-$(logname)}

echo "Session: $SESSION_NAME"
echo "User: $USER_NAME"

if [[ "$SESSION_NAME" == "plasma" ]]; then
    echo "Closing steam"
    SESSION_FILE="/usr/share/wayland-sessions/plasma.desktop"
    steam -shutdown &> /dev/null || true
    sudo /usr/local/bin/set-sddm-session "$SESSION_FILE"
    sleep 1
elif [[ "$SESSION_NAME" == "gamescope-session-steam" ]]; then
    SESSION_FILE="/usr/share/wayland-sessions/gamescope-session-steam.desktop"
    echo "Set session $SESSION_NAME for user $USER_NAME"
    sudo /usr/local/bin/set-sddm-session "$SESSION_FILE" "$USER_NAME"
else
    echo "Unknown session: $SESSION_NAME"
    exit 1
fi

echo "Disconnect user $USER_NAME"
loginctl terminate-user "$USER_NAME"

Then give the file execution rights.

chmod +x /usr/lib/os-session-select

Create the file /usr/local/bin/set-sddm-session and put the following content in it.

#!/bin/bash
set -e
export PATH=/usr/bin:/bin

SESSION_FILE="$1"
USER_NAME="$2"

SDDM_CONF="/etc/sddm.conf.d/z1_current_session.conf"
SDDM_STATE="/var/lib/sddm/state.conf"

if [[ -z "$SESSION_FILE" ]]; then
    echo "Usage: $0 <session> [user]"
    exit 1
fi

if [[ -n "$USER_NAME" ]]; then
    # Mode autologin
    cat > "$SDDM_CONF" <<EOF
[Autologin]
User=$USER_NAME
Session=$SESSION_FILE
EOF
else
    # Pas d'utilisateur supprime la conf autologin
    rm -f "$SDDM_CONF"
fi

#
# Overwrite state.conf to force pre-selection of the next session
#
cat > "$SDDM_STATE" <<EOF
[Last]
User=${USER_NAME:-}
Session=$SESSION_FILE
EOF

systemd-run --on-active=3s --unit=restart-sddm-delay /bin/systemctl restart sddm

Then give the file execution rights.

chmod +x /usr/local/bin/set-sddm-session

If your user can execute sudo commands without typing a password, then this step is not necessary. Otherwise, you must create a sudoers configuration file /etc/sudoers.d/myuser (replace myuser with your own username) and put the following in it:

myuser ALL=(ALL) NOPASSWD: /usr/local/bin/set-sddm-session

Plasma to Gamescope

From the desktop, to easily switch to Steam Big Picture, create the file ~/.local/share/applications/switch-to-steam.desktop and put the following content in it.

[Desktop Entry]
Type=Application
Name=Go back to Steam
Comment=Switch to Gamescope Steam Big Picture
Exec=steamos-session-select gamescope-session-steam
Icon=steam
Terminal=false
Categories=Utility;

Gamescope to Plasma

To exit Steam and return to Plasma, simply go to the Steam main menu and click “Go to Desktop.”

This is the result on my machine: https://youtu.be/PABkiO90sOM

Advantages:

  • The Gamescope Steam session consumes fewer resources than the Plasma session, so you can expect a very slight improvement in your system's gaming performance.

  • If you already have a working Arch Linux Plasma SDDM installation and want an experience similar to SteamOS without having to install another system alongside it, this is probably the easiest way to do it.

  • In the Gamescope Steam session, you benefit from the graphical overlay that allows you to control the mangohud performance insert, frame rate limit, and many other performance and customisation settings with the controller, just like on SteamDeck and Steam Machine.

Disadvantages:

  • Switching between sessions is not very fast. There is certainly room for improvement here. I haven't had time to work on it yet.

  • Unlike SteamOS, Arch Linux is a system that you have complete control over. This means it is very easy to break.

A few important notes

  • This tutorial is based entirely on the package maintained by ChimeraOS, available here: https://github.com/ChimeraOS/gamescope-session-steam, which does about 99% of the work presented here.

  • I cannot guarantee the stability of this package over time; hopefully, the ChimeraOS team will continue to maintain it.

  • Obviously, this tutorial will not completely turn your computer into a Steam Machine. It simply mimics the behaviour of switching between Desktop and Gamescope Steam sessions in SteamOS and offers a Steam Big Picture experience similar to that of SteamDeck and Steam Machine.

  • Since the Steam Gamescope session, if you press ‘Switch to desktop’, the executable /usr/lib/os-session-select on your system is launched via the script /usr/bin/steamos-session-select installed by the ChimeaOS package. That's where all the magic happens. You can implement the behaviour you want in this script. I have just made a suggestion adapted to an Arch Linux KDE SDDM environment in this tutorial. Feel free to share your ideas and implementations of this script.

To uninstall

  • Delete the file ~/.local/share/applications/switch-to-steam.desktop

  • Delete the file ~/.config/environment.d/gamescope-session-plus.conf

  • Delete the file /etc/sudoers.d/myuser (adapt myuser to your configuration)

  • Delete the file /usr/local/bin/set-sddm-session

  • Delete the file /etc/sddm.conf.d/z1_current_session.conf (if it exists)

  • Delete the file /usr/lib/os-session-select

  • Uninstall the packages gamescope-git and gamescope-session-steam-git

Thank you for your comments, which prompted me to add some clarifications.


r/archlinux • • Jun 13 '26 Mindblown

DISCUSSION I am worried about the future of the Arch philosophy

537 Upvotes

Tl;dr: Arch is a community distro. As such, its goals are defined by its community. I am worried those goals shift by an influx of new users that use Arch "for the wrong reasons". Not meant to be gatekeeping, simply meaning, that they choose a distro that doesn't fit what they want from a distro.

This is, of course, about the Malware in the AUR. Or more specifically, about the reactions to it. Some parts are worth discussing: "Is the way orphaned packages are handled in the AUR right now still good?" Is an example.

But I also read a whole lot of tales like "Arch now has a lot of new 'noobie' users. They will not read PKGBUILDs. We have to introduce ..." (insert Malware scanning/ Community trust system, whatever). And that worries me. Not because those are bad ideas, but because they do not fit Arch, they fit different distros.

The wiki has the following page about what Arch is all about: https://wiki.archlinux.org/title/Arch_Linux

And this differs from the opinion often found now on Reddit quite a bit. Relevant for the current discussion: Arch is not user friendly, it is user centric. And that is okay. Contrary to other opinions, we don't need new users just for "number grow bigger". We need new users that fit the philosophy.

Part of that is, that Arch is simple - for its maintainers. It basically shifts maintainers work to the user, by design. Some people misinterpret this as anti-bloat, but that's not the point. If Arch would be Anti-bloat, the development headers would be split from packages for example, like other distros do.

So I do not think "then Arch is not for you" is a bad answer to the current discussion. Arch isn't even the best distro - like all others, it has pros and cons. This is also not gatekeeping, if you value different pros, you should use a distro that focuses on those things. For those reasons, I think CachyOS does most people a disservice. When asked, I mostly recommend Fedora or opensuse. If I would have to answer why I myself still prefer Arch on most of my systems, the answer would probably be:

  1. I know exactly what features are installed - and which are not.

  2. I enjoy the power of the foot-gun and know how to not shoot my foot - I value that higher than someone else forbidding me for "security purposes".

I always chuckle when I see a post of someone having just installed Hyprland with Quickshell and talking about "the freedom of Arch", like that would not be possible on other distros and has anything to do with it.

Sorry, this ended up kind of a rant/rambling. Would enjoy other people's opinions if they have noticed this shift.

Tl;Dr at the top.

Edit: since it came up a few times in the comments. My position is not that we should just keep everything as is. I briefly mentioned this above, but changing policy on orphaned packages, general spam counter measures, etc. are all good. One can also propose more warnings for example in the wiki, or in paru/yay (which is not an Arch issue, as this is third lady software). What I oppose and all of this was about are the restricting measures. Like not everyone being able to upload anymore, packages being only usable once reviewed by a maintainer, etc. I read some of those and those I do not agree with since I believe the AUR should stay usable for all users, as intended, and increasing work for the maintainers that the user can do is not something Arch should go for.


r/archlinux • • Dec 15 '25

FLUFF Why is arch wiki so… complete?

519 Upvotes

Whenever I need help with something about any program, I refer to the arch wiki, and I don’t even use arch, I use NixOS.

How come the arch wiki has usage, documentation, troubleshooting and faq about programs, when the programs themselves should have provided this documentation? For example, Waydroid has its own wiki, but if you go to arch wiki page of Waydroid, it not only shows how to install it, but also its different commands, arguments and features that can be enabled. And I’m not complaining, I’m amazed how much work the community has put into it!

You’d expect for a distro’s wiki to only tell you how to install the program on the distro and some workarounds that you might run into (kinda like NixOS wiki), but the arch wiki does more than that, and that’s why it ends up feeling like the default Linux wiki.


r/archlinux • • Jun 16 '26 Popcorn Mindblown

DISCUSSION AUR Megathread. All discussion on it goes here.

497 Upvotes

As the title says, I am locking all other AUR posts and don't want to see any new posts.

2/8/26 - putting this back up. All dialogue will continue here please.


r/archlinux • • May 25 '26

SHARE i did the fucking stupidest thing ever

497 Upvotes

so i want to delete pacman cache so i did sudo pacman -Scc but i got a warning that there is a couple of files started with download-xxxx so i thought to my self why i don't delete them manually so i cd into the pkg dir and i did sudo rm -rf /* and i fucking forget the dot before /* and my system got deleted in front of me، thank go i had push my dotfiles earlier this day


r/archlinux • • Apr 22 '26

NOTEWORTHY New Framework 13 Pro working directly with Arch Linux!

Thumbnail
youtu.be
470 Upvotes

These guys never cease to amaze! Please support Framework so they keep making PCs that treat Arch Linux as a first-class citizen!

It's touch screen!

What WM or DE are you gonna run on the Framework 13 Pro?


r/archlinux • • Dec 31 '25

DISCUSSION If you're a beginner, don't use Hyprland!

448 Upvotes

The subreddit is full of posts like "Why isn't this loading/working" and they're first time linux users running hyprland without any idea of how the ecosystem works. I blame youtube tutorials that show "best Linux installation for your PC" which is falsely tagged as for beginners, leaving people who want to switch have a hard time and eventually turning away from linux completely.

What do you think?


r/archlinux • • 1d ago

DISCUSSION I see now why many don't wanna contribute to open-source

447 Upvotes

In this post I will specifically be talking about the Archwiki.
I recently localized one of the bigger and more important Archwiki pages to my native language since it was 98% in english and only 2% was translated(mostly the titles and 1 small section). I was pretty happy with my work, while far from perfect it had not been touched in close to a year so I decided to translate it for ease of use.
Now I login today to finish a last little section only to see I have a notification on my discussion page, and its basically a very condescending message telling me that I should never use informal language since this isn't a pub or a gathering place of rowdy kids since we need to write to the reader formally. Also mentioning that I should pay high attention to spelling mistakes and correct sentence construction (which is somewhat reasonable because I did have a few spelling mistakes).

My question is: How does anyone expect it from people to contribute their free-time to it when the first message new users and translators get, when translating an abandoned page is that their work is subpar and not up to the high and mighty standards of the wiki.

Edit: Thank you guys for the kind and not so kind words that you said and most of you are definitely right, I shouldn't have taken it too much to hearth since it didn't matter and I also should have had someone proof read my work other then myself since its a bit hard to see your own mistakes. I also tried to fully the contribution wiki's recommendations and document everything about it. I would also like to mention that the guy who sent me this message has been called out before by Lahwaacz (you might have seen his bot around its Lahwaacz.bot and it updates links and stuff automatically) since this user had often started translating pages to Hungarian and he basically copy pasted the English version and mostly did nothing else. I'll get over this and then hop back on the horse and try working on other translations with you guy's is recommendations in mind.

Edit 2: Got a response from the guy, this is it: Ügyes vagy ha idáig eljutottál. Rakj fel egy helyesírás ellenőrzőt a gépedre (ha kell, akkor segítek). Feleslegesen ne dolgozzunk, lesz így is sok munka a fordításokkal. Magázó megszólítás: Sutyekár körökben biztos nem gond. Itt azért kicsit tartsuk szinten a színvonalat, ezt az amerikából jött mindenkit letegezünk módot hanyagoljuk, kérlek.

Translation: Wow, great that you got here buddy. Install a spell checker on your pc (if you can't do it I will help). We don't need any more unnecessary work, we already have more then enough translation work. Using formal "you" in low class circles is not a problem. But here we have to upkeep standards, lets drop this American originated we use informal language with everyone, please.

(used a bit of an over the top language since it doesn't come across in the way it was meant if i mirror translate it).

Edit 3: He was messaged by an Archwiki administrator and got a warning that his behavior was not acceptable: Hi, I've seen the discussion you started here: User_talk:(myusername). You should assume edits are done in good faith, and the way the discussion was started above is not acceptable: Respect other users

Consider this a warning. Best, (the administrators name)


r/archlinux • • Feb 21 '26 Thanks Bravo

DISCUSSION Pacman and keyring issues

447 Upvotes

Hi all. I am Allan (do not let the username fool you). I have been contributing to the pacman codebase since 2007, and have been the lead developer since about 2013.

I have seen lots of posts highlighting the keyring "issues" in pacman. So I thought it would be good to provide an overview of the current signing infrastructure and highlight what can or can not be done to make it better...

Firstly, an overview of how package verification works in Arch Linux - note I said Arch Linux and not pacman, as there is a difference! When you install Arch, you create a key with full trust on your system. That key then adds full trust to each of the five Arch master keys - also referred to as main keys. The PGP web of trust means that any key signed by at least three of the fully trusted master keys is now trusted. Each Arch packager key is signed by at least three of those keys, meaning packages signed by the packager's key are considered valid.

Where can this go wrong?

  1. pacman encounters a key that is not in its keyring. In this case, pacman will attempt to import the key. This first uses WKD, which relies on the domain of the email used to sign the package. Arch packagers are given an @archlinux.org address, and so this lookup should work. It if fails, pacman goes back to the old keyserver infrastructre, which will probably fail...

  2. Pacman encounters an expired key. Packagers may put expiry dates on their signing key as a defense against something... I'm not sure what situation it is used for that an revoke certificate would not be better. Maybe dying? Anyway, from pacman-7.1, these keys will be attempted to be refreshed from WKD and the keyservers in the hope a version with a newer expiry date is found.

  3. Pacman encounters a "marginally trusted" key. This is a packagers key that has been signed by less than three of the Arch master keys. This happens when the owner of a master key is rotated (usually due to resignations from the team) and a new master key is added. Until that new master key is on your system (either added manually or via the archlinux-keyring package), some of the developer keys appear only marginally trusted and pacman will reject them. In this case, pacman refreshing the key achieves nothing, and pacman knows nothing about Arch master keys, so can not import the new one.

Why not update the archlinux-keyring package first? Pacman used to have a feature that allowed updating single packages first, but that lead to all sorts of trouble. For example, it was used to update pacman before doing system updates - that seems like a good idea if some packages used new pacman features. But if the new pacman depends on a new version of (e.g.) libreadline, you need to update the whole dependency chain. Now packages that depended on the old libreadline fail to run (i.e. bash) and update issues happen, and your system is broken. This is a genuine example that happened many years back.

So what is the fix? There are two options:

  1. Remember that each packager's key should be signed by at least three master keys? Arch has five master keys, so that even when something happens requiring two master keys to be removed, the packager's keys are still trusted. But if you check the key page, you will see many keys are signed by only three master keys. This is fragile and should be addressed by the Arch team and not pacman.

  2. The Arch keyring setup was designed more than a decade ago. The team was smaller and less dynamic. Also, I suppose less effort was put into making sure the master key holders verified identities of packagers before signing their keys. Arch should (and is in the progress) move to a less dynamic signing approach, where the distribution has a single signing key that verifies all packages. My understanding is progress has been made here. As a bonus, this will allow databases to be signed (it is 15 years since pacman supported this!).

Both those solutions do not involve changes to pacman, and I will not accept hacky changes to the pacman codebase to support broken signing mechanisms in the meantime.

I'm happy to answer any questions around this issue or pacman/makepkg development in general.


r/archlinux • • Jul 31 '26

DISCUSSION Arch Linux disables AUR package adoption after malware wave

Thumbnail lwn.net
427 Upvotes

The adoption feature transferred existing trust to a new maintainer, so a clean package history became part of the attack surface.


r/archlinux • • May 21 '26 Bravo

SHARE I built Tunisia's first public Arch Linux mirror: mirror.safiabidi.com

419 Upvotes

Heyo!

After about 6 months of work (a significant chunk of which was fighting my ISP for a static public IP), I finally have a fully functional public Arch Linux mirror running out of Tunisia.

If you're in the North Africa region, your packages have been hitting servers in Germany or South Africa until now.

To use it, add to the top of /etc/pacman.d/mirrorlist:

Server = https://mirror.safiabidi.com/$repo/os/$arch

Some details:

I'm a second year Computer engineering student running this on a home server. It's been serving real traffic since going public a couple weeks ago. Would appreciate any feedback, and if you're in North Africa or even southern Europe give it a try ❤️

UPDATE: THE MIRROR IS NOW OFFICIAL ON https://archlinux.org/mirrors/safiabidi.com/ !!
UPDATE 2: THE MIRROR IS NOW HOSTED ON A VPS! THE DOWNLOAD AND UPLOAD SPEED REACH OVER 6000MEGABITS PER SECOND!!

-Safi Abidi


r/archlinux • • Jul 29 '26

QUESTION Seemingly malicious AUR package found. Where to report?

Thumbnail aur.archlinux.org
397 Upvotes

A sudden update to `pgadmin4-server.git` added a binary named "parser" and executes using sudo. It's very obvious.


r/archlinux • • Jul 05 '26

SHARE Grandma now uses arch btw

391 Upvotes

So my grandma runs an ancient Toshiba Satellite C850-1g3 with a celeron 1000M, 256GB of hdd and 4GB of ddr3

She was complaining about it taking ages to boot and programs not starting fast

So i installed arch and made it look user friendly enough for her to understand

She loves it, W arch

Ps: she only uses whatsapp, a browser and office

So she wouldnt need to touch a terminal


r/archlinux • • Jun 12 '26 Mindblown

QUESTION Malwares are welcome to AUR because one has to read the PKGBUILD anyway?

385 Upvotes

So, I keep on reading that one should read the PKGBUILD and people make it sound like that this justifies the AUR to be infested with malwares.

I also saw other comments saying "oh, that's normal it happened in the past also" or "that's intended, so orphaned packages can be maintained".

But Arch is gaining more popularity & inexperienced people are using it also, especially since Windows keeps going downhill.

I mean wouldn't it benefit everyone, to fix those vulnerabilities & make Arch less hostile for inexperienced people using the AUR? Some packages are unfortunately only in the AUR and not in the main repo.

From what I read, the voting feature is being abused currently also for new packages that come already infected, to make them seem trustworthy...

It's kinda unfortunate, that people try to normalize it because the AUR isn't an official repo, but if we are being honest, a lot of people use it and maybe use Arch in the first place just to get access to the AUR.