Skip to content

I just switched from Ubuntu to Arch linux. Can someone explain to me why my hair is on fire?

I was basically sitting around on Ubuntu not switching to Arch because I liked apt package management so much. actually, it was just that I was used to typing the commands, not that I actually liked the package manager under the hood in any way. I never really liked PPAs, but I thought it was just something I was stuck with.

Now that I'm on Arch, using pacman, I will never go back. The first few packages I installed most certainly failed to install because it finished so quickly. The terminal output looked entirely different than what Ubuntu does, but I couldn't find any errors in there. I tried running the programs, and they worked! I was shocked.

What I'm wondering is, what is it that makes such a huge difference with this? I never thought apt was slow before, because I had no idea how fast it actually wasn't. pacman (and AUR vs PPA) has been really great, and rolling release is excellent.

It's amazing to be here and I'm really excited, thanks for everything.

474 points146 comments
Open on Reddit
About this post
Posted
Archived
Score
474 · 94% up
Kind
Text
ID
lpema0

Author

35
posts
92
comments
1
media
View profile

153 comments

Welcome aboard! We try to tell people that pacman is better. lol.

211 points

Everyone tries to just say that that's nothing more than the elitist attitude speaking, but it's true that they don't know what they don't know.

80 points

"Pacman is better"

"Nah, all package managers are the same."

"Seriously, pacman is better."

"Nah. I don't believe you."

2 months later.

"I just installed Arch for the first time and why didn't you tell me how much better pacman was?!"

*facepalm*

17 points

DNF is quite nice from a feature perspective, but the name sucks all I can think of is "Did not Finish"

1 points

If you want to really see pacman fly, install an nginx dynamic-caching reverse-proxy on your home router.

1 points
77 points

since that old thread there has been a new addition to pacman: Now using Zstandard instead of xz for package compression

zstd and xz trade blows in their compression ratio. Recompressing all packages to zstd with our options yields a total ~0.8% increase in package size on all of our packages combined, but the decompression time for all packages saw a ~1300% speedup.

117 points

I noticed this the most when installing AUR packages. I used to put off updating Chrome because I didn't to wait for it to compress the damn package.

8 points

My gut feeling is that dpkg is calling fsync much more often, to guarantee consistency in case of system crashes.

It also used to do some dumb things like not trusting (that it uses where possible) O_CLOEXEC, then iterate thorough every possible file descriptor trying to close it before spawning a child process (which is quite often), but this got fixed at some point. Still, it made Raspbian less than fun.

13 points

I believe this is the main reason (well, besides zstd now maybe). dpkg syncs to disk so ridiculously often that the resulting drop in I/O performance really has a noticeable impact.

5 points

Thanks, great link, minus all the acronyms.

That makes me wonder, how are package conflicts determined? Surely something more robust than trial and error(literally) or open GitHub issues?

7 points

Each package says which binary it provides - there's a conflict if multiple packages provide the same binary name.

18 points

I swear, I stopped with the acronyms :)

On the software side conflicts are found automatically during dependency resolution.

The basic idea is usually something like this: your package manager takes the packages you're interested in, and recursively walks the dependency graph (the thing you get when you pacman -Sy, with just package metadata and not the actual content), to find all transitive dependencies (dependencies of dependencies of... etc).

At that point you can quickly check if there is a conflict (as u/Glebun said, packages can declare which other packages they conflict with), before installing anything.

1 points

At this point, I'm pretty sure one of the biggest reason people switch from Ubuntu to Arch is because they're fed up maintaining all the PPAs.

71 points

PPAs are hands down the most annoying part of working with Ubuntu imo

54 points

Ubuntu would do well to introduce an AUR equivalent, containing unbuilt Debian package sources, to be built on the host computer like we do with makepkg. Holy moly would the Ubuntu experience be better without having to use random unmaintained PPAs

34 points

They are also really dangerous. I did run Ubuntu in the past and I've encountered conflicts, out-of-date packages, apt didn't know what to do anymore and really slow package installs.

2 points

That, and that hideous UI. I switched to Ubuntu Gnome Edition, but the PPAs eventually made me sick. So here I am almost 10 years deep into Arch.

4 points

Pacman doesn't do version dependency resolution, because only one version of each package is supported at any time ("partial upgrades are not supported"). This is one of the things that allows pacman to be a bit faster than apt.

The fact that partial upgrades are not supported means everyone is on the same version of everything, which allows bugs to be found and fixed faster, because there are fewer version combination s that need testing.

This is the one major element of simplicity that makes Arch a good experience in general. It sounds like the lack of a feature, and yet the simplicity it implies makes for a much better distro.

46 points

Pacman supports versioned dependencies just fine, arch doesn't use them except in a few select cases; e.g. bash has a versioned dependency on readline.

25 points

It will just complain though, right? It won't go and try and find a combination of versions that satisfies what you asked for and install them.

And it's only comparing to the "provides" array I think, not the actual package version. readline is currently 8.1.0, but bash depends on "libreadline.so=8-64", which is in the provides array of readline.

3 points

When they say Arch is designed with the KISS (Keep It Simple Stupid) principle they aren't kidding. The only real thing that separates most distros is the package manager and pacman is designed with the KISS principle in mind.

Of course this means there's a tradeoff. DPKG has more features than pacman. It can do fancier things with its packages and that can result in things like smaller package sizes or supporting multiple package versions (Arch doesn't support this, hence "Partial upgrades are not supported"),

On the other hand pacman's simplicity means it's easier to fix bugs if they ever arise, it's faster on the installation since it doesn't need to keep track of all sorts of things to make the aforementioned features work and it's easier for laymen to create packages themselves and upload their PKGBUILDs on AUR.

25 points

I use both Ubuntu for mass deployment with LTS version and Arch on my personal machine and for development. Pacman is far superior than Debian Apt, try and install or uninstall nvida drivers and you will see my point. Just a small example of superior package management via Pacman. Even AUR rocks over PPA.

17 points

Hey I had uninstalling problem with nvidia packages in Debian, and never installed nvidia again for that reason even though I'm using Arch right now. Can pacman cleanly uninstall nvidia?! Or do you mean something else?

3 points

Add ILoveCandy to your pacman.conf and you get a cooler progress bar!

12 points

Welcome! Ubuntu definitely feels old crusty once you've switched to Arch! Enjoy!

10 points

Wait until you tried DNF on Fedora, it's like going back in time.

8 points

DNF is the slowest package manager I've ever tried

1 points

pacman is written in C (fast) while dnf is written in Python (slow)

1 points

Arch blows away Ubuntu, at least for desktop use IMO

5 points

As you said, in your opinion. :) I use Ubuntu 20.04.2 exclusively for my daily driver for my personal machines and that is what I want.

0 points

If you've got an hdd, apt's package directory is vulnerable to ... not quite fragmentation, but the directory is read in order and the inodes get out of order over time, so apt starts slowing down dramatically. I forget the path to it, but find | sort | cpio -pd ../new and replacing the old one every few months sped up apt a lot for me. pacman's installed packages are kept in a flat file so it's not vulnerable to that.

4 points
unknown author32 hidden

Deleted before we saved it.

3 points

Manjaro is less reliable, has questionable maintainers, and doesn't give you big advantages over Arch.

If you just want arch, but with an easier installation, something like EndeavourOS is the better option. I don't understand why Manjaro still is a thing. When AntergOS got popular, Manjaro lost a lot of popularity.

37 points

I recently need to have Arch installed, but I don't have time to lookup Arch wiki (it's been a long time since I had to install Arch from scratch). I just use endeavourOS and after it's done, strip all the eOS stuff.

5 points

I had a better experience with the anarchy installer than with endeavour OS. It allows for more customisability and also endeavour OS always failed to install for me.

1 points

For me, I prefer a minimal setup and want to install what I want rather than what Manjaro wants to install for me, Arch is cleaner, no themes, no unnecessary extensions/packages. This is also why I used Debian instead of Ubuntu in the past.

9 points

https://rentry.co/manjaro-controversies

This minus the "monetizing part" but plus recent issue with firing their accountant because he refused to pay for a gaming laptop for their lead dev who wanted to get it bypassing all their procedures.

Though the biggest issue for average person just wanting a good distro is their atrocious security practices.

8 points

the packages in the AUR are built against the latest Arch Linux packages
but since Manjaro packages are some weeks behind you risk running a partial upgraded system on Manjaro if you use the AUR
Something you should avoid on a rolling release distro

7 points

That argument is nonsense. The AUR doesn't contain binary packages so you can't perform a partial update by installing something from there.

Maintaining your own packages, that includes AUR packages since they are your responsibility, can lead to partial update when you neglect rebuilds but that will happen on arch as well.

4 points

All around, Manjaro is pretty bad. To start off with I like minimalism, and Arch fits that perfectly. Manjaro's repositories are only delayed, not tested. The forums suck, it's configured pretty badly and is completely unstable for normal use. Just my experience.

4 points

I don't see any benefit in using Manjaro. They make decisions I will have to reverse at some point, because I want the system to behave in a certain way. I used Ubuntu once, but I kept fighting Ubuntu decisions that strayed from upstream, so why not build it from the ground up.

4 points

I tried Manjaro for a day or so, didn't really like it, tried reborn and liked it a lot, but still long for the simplicity of pure arch. I had actually installed Arch just for the fun of it several times, but I usually never got around to installing a desktop environment or really using the thing, install only.

After several weeks on reborn, having experienced the speed of Pacman, I couldn't help but want to go to the simple version and use actual Arch.

for those of you that want to try Arch but you are scared of the installer, don't be, you learn a lot and it's great. Another option though is anarchy Linux. I never tried endeavor, but other commenters mention deleting endeavor stuff after install. Anarchy gives you the option to just install pure Arch using a TUI which I found to be very handy.

Anarchy Linux allowed me to install Arch without needing the wiki or an Ethernet connection, I performed the entire install over Wi-Fi which was nice.

2 points
unknown author

Deleted before we saved it.

1 points

I tried this route and then one day manjaro broke(blame nvidia) And no matter what I did it wouldn't work, got frustrated and installed Archlinux and it was way slim and minimal.

2 points

I used Manjaro for a while and really liked it, but had too many stability issues. Since going pure Arch, it's been flat out awesome. Can't recommend it enough. The installation isn't nearly as tough as everyone makes it out to be.

I've been running the same installation on my laptop for years, and it's as solid and stable as day one! Perfect daily driver!

2 points

Likewise. I grew up on ubuntu/Linux Mint, moved to Manjaro (back when it was actually good) then finally base Arch, and now every other distro just feels clunky as shit. Even the much-hailed Solus (which is a fine distro in and of itself) is just plain not as good.

I reckon it's unusual to 'find a home' in such a fluid world as computing, but Arch is most certainly it.

3 points
unknown author

Deleted before we saved it.

3 points

I've always found apt package management to be a chore, especially when dealing with PPAs.

Pacman is worlds better to use. I don't use an AUR helper, I install each AUR package manually and it's much better IMO.

Just yesterday I was installing python-mechanical soup and was able to edit the PKGBUILD to cut out all the python2 crap.

It's such an elegant solution.

edit: fixed PCKBUILD to PKGBUILD . . .wtf ?

2 points

But you can do that with an AUR helper though. And even something like paru shows you the pckbuild before installing, so you can modify it before making the package. And it's the default behavior. However your solution is the real Arch way, I think that's how they recommend doing it actually. I'd like doing it like that but I don't know anything about modifying packages before building, as you said sometimes there is unnecessary stuff.

2 points
unknown author1 hidden

Yay! I mean have you tried yay?

2 points

First commands after installing Arch and connecting wifi were pacman -Syu git followed by git clone https://aur.archlinux.org/yay.git

Love yay.

3 points

I switched recently too. At first I just wanted to do something with an old Thinkpad T500 that I had laying around, so I thought I could do some experiments with a Linux distro I was unfamiliar with or whatever. I upgraded its RAM, threw in a SSD, and installed Arch with the Sway window manager. What started as an experiment became my main work / coding machine.

2 points

Apt is actually pretty fast actuslly compared to dnf and zypper. Muchnofnthr reasoning pacman is so fast is because unless you configurr it to do so it doesnt take filesystem snapshots like zypper, and it doesnt reverify checksums like dnf. And unlike apt you can configure local repositories and not rely on say... Canonical's repository mirror all the way in England while your in California.

That said make sure you read the news before you run -Syu and read the package list thats getting updated. Because Arch doesnt hold hands like Ubuntu does.

2 points

yay is the best thing, it made arch awesome, it was lame until i discovered it

2 points
unknown author1 hidden

Deleted before we saved it.

1 points

That’s good commentary for those people always asking why switch from Windows, or other Linux.... a question I have very little patience for. Just dive in! Well said.

1 points

You just got a prime example of why many of us advocate for simple software. apt and ubuntu packages are designed to do much more stuff silently and automatically. Arch packages are so fast to install because many of them literally only need to extract the files. Also, pacman has implemented support for zstd compression and arch repos have switched to using it, and this significantly speeds up decompression.

The other side of the coin is that since pacman doesn't do everything automatically, updates sometimes require manual intervention and config migration. It is a good idea to check the arch news before updating (some tools like paru can be configured to do it automatically before an upgrade). Always monitor pacman's output to see warnings that might prompt some action on your part.

1 points

Did you do meth, you mad person?😸 In all seriousness though, Ubuntu was one of the first distros I ever used, it was 10+ years ago, but it felt like my ass hair caught fire – first the boot splash screen got divided into squares that were randomly placed on the screen, then after like 10 minutes of only having Firefox with 1 tab opened and Rhythmbox playing music in the background, Firefox crashed, and after somewhere around 5 more minutes Rhythmbox followed suit. Linux has come a long way since then though, but I'm feeling quite good using Arch.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.