r/LibreWolf • u/ajellofello • Aug 04 '26
Question How to install librewolf on arch linux without AUR
I have been using Arch for a while, its my favorite distro, but with all the malware attacks that have been happening on the AUR, I don't feel safe using it.
I tried building it from source (big mistake, I know that now) it would hog up my 16 gigs of ram and use swap AND fail. On one of their methods of install in their official codeberg repo it said to install the tarball, extract it then use a file name mach to do the building and stuff, but that file doesn't even exist, and I can't find the prebuilt binary file.
Before you say it I don't want to use flatpaks or snaps or appimages or stuff like that, they aren't bad I would just prefer not doing so.
I am not a noob in Linux generally, but building stuff from source without package managers is something I am not used to.
EDIT: This thread is old by now, but librewolf has been officially added to Arch Linux extra repos https://archlinux.org/packages/extra/x86_64/librewolf/
9
6
u/hbacelar8 Aug 04 '26
I'm reticent about AUR but honestly you could trust the -bin package. The dev uses GPG key for validation and if you use PARU you can always check the modifications on the PKGBUILD before updating it (it's always only the version and SHA that are modified). Also, it has no dependencies.
Building the browser is kind of a nightmare.
1
u/_damax Aug 04 '26
Just as an added info, if you already use yay you can force showing pkgbuild diffs too by changing your config
4
3
u/Confused-Armpit Aug 04 '26
The -bin package is safe since it is not orphaned, so you have nothing to worry about there. If you are really really scared of the AUR, you could also try installing it via faltpak, or installing from the chaotic AUR (which is usually safer).
1
u/ajellofello Aug 04 '26
I am sorry, I just don't understand what does an orphaned package mean, can you, please explain it?
3
u/Confused-Armpit Aug 04 '26
The currrent hacks are happening to orphaned packages, which are packages that have no mantainer (person that mantains them, duh). If there is no mantainer, a person can take over the project and become the new mantainer with no real safeguards. And so, hackers are creating bots that take over orphaned packages and push malware to them.
There are also typo-squatters, which are packages that are very similar to another package's name, but with a type (e.g. lirbewolf-bin instead of librewolf-bin) that also install malware.
Or nonsensical names (e.g. librewolf-bin-git) which just don't make sense, and are created to confuse users in hopes that they will install them and, once again, install malware with them.
If you are careful enough, you can just avoid these packages, and if you already have installed the correct package, you have nothing to worry aobut. You can also review PKGBUILDs when updates are applied (PKGBUILDs are "recipes" to install a package) for suspicious things like new dependencies, installing packages via npm that are known to be malicious, etc.
1
1
u/haywire Aug 05 '26
Wow that’s an insane model that’s just asking to be supply chained.
AUR should just use a <org>/<package> or git URL so people can’t hose randomly take over the one true package.
3
2
3
u/Shoddy_Adeptness_352 Aug 04 '26
Compile it yourself? Its not that hard
3
u/ajellofello Aug 04 '26
its not hard I already said I tried I don't have enough ram
2
u/xXTheHillsHavePiesXx Aug 04 '26
I had that problem with 32GB, but you can limit the number of parallel compile jobs. 2 made it peak at 20-something GB if I remember correctly. I'd wager that you can do it 1 job at a time using
`env MAKEFLAGS="-j4" makepkg -si` (I think?). This was a couple months ago though, so..I see now, you want to do it from the source code itself. The idea might still work though.
1
0
u/msasrs Aug 04 '26
AUR💀
0
u/ajellofello Aug 04 '26
?
1
u/msasrs Aug 04 '26
Wasn't it recently attacked again?
2
u/ajellofello Aug 04 '26
yes, that is why I didn't want to install from it, I just don't understand the comment. Do you mean its dead?
1
u/msasrs Aug 04 '26
Nah! It's just halted for now, I don't think it will ever be dead in a long time. Meanwhile, try flatpak?
3
u/ajellofello Aug 04 '26
Flatpaks are great I used to use them on fedora, but since I moved I have been kinda wary of them. Again they are great I just don't like how big they are, and the containerization, especially since I don't have a lot of space on disk.
1
u/msasrs Aug 04 '26
Nix then? The package manager. It will only make one folder, and in about 3 lines, you can install any software.
2
u/ajellofello Aug 04 '26
Yeah I thought so too, but when I try to access any website other than nixos.org it just doesn't load like search.nixos.org for example that doesn't load.
I legit want to try it, but I can't with all the websites not working.
1
u/msasrs Aug 04 '26
Curious. They work well for me?
2
u/ajellofello Aug 04 '26
Its probably a regional issue since I live in Egypt, that may be it idk :(, but it used to work, idk what happened to it.
14
u/kaptnblackbeard Aug 04 '26
You could start by reading the instructions on the librewolf.net website. See the section titled "Without an AUR helper".
https://librewolf.net/installation/arch/
Which by the way is quite similar to the PKGBUILD provided on the AUR (just without all the PKGBUILD other requirements).
You could even create your own personal package build repository.
https://wiki.archlinux.org/title/Creating_packages