168
submitted 4 days ago by yogthos@lemmy.ml to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] yesman@lemmy.world 45 points 4 days ago

The command pacman -Qm will display every package from the AUR on your system. You can then search the list of compromised packages.

[-] christian@lemmy.ml 4 points 3 days ago* (last edited 3 days ago)

To be clear, -Qm displays installed packages not currently in the repositories. This will include AUR packages, but I avoid the AUR (except for davmail years ago) every once in a while I'll run it just to check and sometimes it finds packages.

When you install things from the main repos the dependencies get installed too, and if those dependencies are no longer needed they'll be removed from the repositories. (I also have a bad habit of forgetting --asdeps when installing optional dependencies.) Sometimes they'll conflict with a new dependency and pacman will ask to remove and replace them, but other times the functionality has become a part of an existing package, so with no conflict to prompt removal they'll just sit unused on your install. If you haven't tried -Qm in a long while you'll probably find a few harmless currently-unused packages that were installed through the normal repos. (-Qdt will cover the other cases where dependencies remain in the repos but are now only needed for packages you don't have installed.)

Obviously -Qm will also show removed packages that aren't dependencies, a few years back my preferred pdf viewer was removed from the repositories.

-Qm will also find manually installed packages that aren't in the AUR if you ever do that.

[-] HaraldvonBlauzahn@feddit.org 5 points 3 days ago* (last edited 3 days ago)

And don't forget that a system compromise means you need to re-install all in order to re-gain control of your system. Without the malware of course.

Edit: I see downvotes... Some people don't seem to understand why running malware permanently destroys a system's integrity. I do not have more time today - can somebody explain for me why?

[-] starshipwinepineapple@programming.dev 4 points 3 days ago* (last edited 3 days ago)

Here are some scripts that can help too

(Edit: apparently i need to say to read and understand what these scripts are doing before running them. If you don't understand what you're running then don't run them) https://gist.github.com/Kidev/85756c3dcad3623ca5604a8135bafd14

[-] HaraldvonBlauzahn@feddit.org 4 points 3 days ago

You suggest people to run more untrusted code in order to fix malware from untrusted code?

Is this a joke?

[-] 5ymm3trY@discuss.tchncs.de 3 points 3 days ago

I haven't checked the scripts from OP, but i think there is a script that is provided by the CachyOS team that basically just contains a list of compromised packages and compares that to your pacman -Qm output. If it finds a match, it tells you that the compromized package X is on your system. That seems pretty reasonable.

I get your point and as always, you should check the source of the script as well as the code inside of it. Never installing anything outside of official OS repositories is probably not an option for most people. There are always pros and cons. Like in my example maybe some OS maintainers know more about the affected packages than I do with a quick search. On the other hand, the script might be outdated because the number of packages changed a lot over the last few days.

[-] ScoffingLizard@lemmy.dbzer0.com 1 points 3 days ago

Is it best to uninstall all the supporting files too. Semes like there is an option to do that.

[-] HaraldvonBlauzahn@feddit.org 1 points 3 days ago

You can then search the list of compromised packages.

Or just uninstall all AUR packages, instead of waiting for your ones to appear on that list, and having to re-install your full system to ensure its integrity.

[-] Grass@sh.itjust.works 1 points 3 days ago

I had more aur packages than I thought but none in the list. Is this just known ones and there could be more?

[-] bless@lemmy.ml 3 points 3 days ago

Of course. A compromised package can't be on the list if it's unknown. Hopefully not, but there's still a possibility

this post was submitted on 14 Jun 2026
168 points (94.7% liked)

Linux

65851 readers
774 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 7 years ago
MODERATORS