Skip to content

u/ShallowAndPaedantic

In this archive from Feb 2016 to Feb 2016

0
posts
14
comments
0
media
105
score

Top comments

Does this make sense? Alternatively, why is it that there's this huge performance gap between pacman and apt?

Three reasons

  1. Pacman has a simpler implementation and codebase
  2. Dpkg' dependency model is more complex than that of Pacman's
  3. Debian as a philosophy lists all dependencies and their exact version requirements, even those that no sane person would not have on his or her system, Arch tends to omit those on the argument that your system is probably fubar if it's not on your system anyway.

Like, pretty much every package in Debian has glibc as a dependency. The package manager probably wouldn't as much as run without this anyway, but hey.

Edit: As the comment train points out, a fourth reason is that Debian's packaging philosophy entails splitting up stuff in smaller packages more, this also makes dependency calculation take more time.

58 points

Well, I listed 3.

I can also list a fourth by the way which also doesn't apply to dnf, or at least to Fedora's packaging philosophy.

Debian and its children have a very granular packing philosophy compared to most systems. Packages in general are very small compared to Arch, sometimes what in Arch is one package is 25 different packages on Debian, a lot of which of course depending on each other which probably also factors into the slower dependency calculation on Debian in general.

If you ever used Portage though, then you know what slow dependency calculation feels like. But Portage' dependency model is then again even more granular than Dpkg's.

—— — time emerge -puUD @world

These are the packages that would be merged, in order:

Calculating dependencies... done!

real    0m41.753s
user    0m40.663s
sys     0m0.739s
 —— — time emerge -p firefox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-libs/libvpx-1.5.0  USE="postproc*" 
[ebuild  N     ] app-arch/zip-3.0-r3  USE="bzip2 unicode -crypt -natspec" 
[ebuild   R    ] dev-db/sqlite-3.10.2  USE="secure-delete*" 
[ebuild  NS    ] sys-devel/autoconf-2.13 [2.69-r1]
[ebuild  N     ] x11-misc/icon-naming-utils-0.8.90 
[ebuild  N     ] x11-themes/gnome-icon-theme-3.12.0  USE="-branding" 
[ebuild  N     ] virtual/freedesktop-icon-theme-0 
[ebuild  N     ] media-plugins/gst-plugins-libav-1.6.3  USE="orc -libav" ABI_X86="(64) -32 (-x32)" 
[ebuild  N     ] www-client/firefox-44.0.2  USE="bindist gmp-autoupdate gstreamer hwaccel jemalloc3 jit pulseaudio system-cairo system-icu system-jpeg system-libvpx system-sqlite -custom-cflags -custom-optimization -dbus -debug -ffmpeg -gstreamer-0 -gtk3 -hardened (-neon) (-pgo) (-selinux) -startup-notification -system-libevent {-test} -wifi" LINGUAS="-af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -th -tr -uk -vi -xh -zh_CN -zh_TW" 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by www-client/firefox-44.0.2::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.5.0 postproc
# required by www-client/firefox-44.0.2::gentoo[system-sqlite]
# required by firefox (argument)
>=dev-db/sqlite-3.10.2 secure-delete

real    0m24.007s
user    0m23.355s
sys     0m0.427s
 —— 1 

42 seconds to calculate the dependencies of a world update concluding the system is up to date, 24 seconds to calculate what to do to install Firefox on my system.

12 points

Couple of things that Dpkg' format supports that Pacman doesn't from the top of my head:

  • Fully fledged or-depdencies where each or branch can be a full tree again. So Dpkg for instance can express systemd || ((sysvinit || runit) && openrc && consolekit && (udev || eudev), Pacman cannot express such a dependency.
  • More complex relationships, Pacman only has "depends " and "optionally depends". Dpkg has "depends", "suggests", "recommends", "improves" and some more I don't know by heart.
  • Dpkg has more advanced meta-data facilities of authorship and organization as well as package categories which relate how essential a package is for a working system
  • Dpkg repositories can contain multiple versions of the same package which is often the case as well as different packages for particular achitectures
  • Dpkg packages have more tuneable hooks for packaging scripts and when they are being ran.
11 points

The difference between a "WM" and a "DE" is honestly a nonsensical gut-feeling thing and basically seems to more often than not imply "uses a retarded UI that uses the mouse too much" when people speak of the latter more than anything.

Everyone runs a "desktop environment" in the end, the different components just may or may not come from the same brand being developed together, that's it. And how many KDE components do you need to switch out for other components to say you run Kwin as a window window instead of KDE?

It's a silly distinction.

With Wayland though, this distinction is about to get real in an uncomfortable way. with X. The different programs of a "DE" are just that, different programs, they may share the same brand name but that's pretty much it, there's nothing really special about it. With Wayland, these programs do require special integration with the compositor which means that various GNOME/KDE/Xfce whatever programs will actually stop working outside of their designated compositor on Wayland, this is not the case on X.

6 points

Subreddits

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.