Skip to content

How do you think Arch could be better?

And still be The Arch Way. (That is a little restrictive, maybe do some somehow limited excursions if you want.)

Arch already have a very nice system going, of course! And since it volunteerism, cant expect too much. Still think that it should be discussable. (here is an older thread)

49 points159 comments
Open on Reddit
About this post
Posted
Archived
Score
49 · 100% up
Kind
Text
ID
2dndek

Author

7
posts
383
comments
0
media
View profile

171 comments

Integrate into pacman -Syu a(n optional) function to show differences in .pacnew files and on-the-fly editing (nothing automated, just making our collective lives easier.)

Also, official delta packages. Right now there's only a single repository that I know of that provides them, on France.

45 points

Concur the delta packages. That would save a lot of bandwidth.

31 points

It does. pacman recently force downloads the full package if the delta file is more than 70% the size of the package. I miss linux deltas though, but it's now the biggest package pacman downloads when Syuing so weeeeeeee

5 points

Have you ever used pacdiff?

7 points

Integrate

As in, in the same upgrade process. I'd expect it to pop up automatically if such files appear.

Just looked pacdiff up (I knew it existed). From the first google result I found there's a port of etc-update from Gentoo, which, besides the automation, is the closest to what I was picturing. Man I'd love to use Gentoo -.-

7 points

Better output from pacman when updated packages cause other packages to be installed or uninstalled or even cause conflicts.

It's mostly fine, but if you have for example the [mesa-git] repository enabled, compiled your own version of mesa and are testing another xorg build then pacman updates can easily require surprising replacements or downgrades. Then you have to use pacman --debug and read a long list of packages to find out why exactly it wants to do something.

I wish for an option like --showreasons that would display the reasons why something is happening like a stack:

----
X 2 is upgraded to version 3
Y 2 is upgraded to version 3 because X version 3 requires Y version >=3
Z 5 will be newly installed because Y 3 depends on Z
----

or something like that

30 points

I thnk what you want could be well done with at tree view: It'll be easy to program and will be understandable.
Example:
Foo: update from v678 to v999
•--Bar: update from v371 to v987
....•--libfireball: downgrade from v0 to v-1
EDIT: I couldn't get the code formatting to work, so I filled in leading spaces with dots

8 points
Foo: update from v678 to v999
•--Bar: update from v371 to v987
    •--libfireball: downgrade from v0 to v-1.
6 points
1 more reply

Pacman desperately needs an --optdeps option for optional dependencies and I appreciate the color output of yaourt so I'd like to see something like that even though I usually just download/remove & update packages with aliases for 'yaourt -foo'.

3 points

Incorporate the Nix package manager to the system. I'm sure that with Arch community both projects would benefit in the long term and the number of packages Nix could build would skyrocket.

As a developer I already have fresh packages thanks to Arch, but I'd also benefit greatly from installing older versions to verify my programs, etc.

28 points

Completely forgot about it. Yeah, Nixos does sound very cool. Think that also helps with getting more information for Mandatory Access Control available.

10 points

why not use nixos if you want that?

the reason people don't use it and package for it is that it is a fucking shitty system (having to specify a ton of insane long paths just to build something, breaking all ./configure/cmake/scons/whatever builds, etc.). so I'll stick with arch for now thank you very much, and don't ask for people to fuck it up. :-)

-2 points

Because I like what Arch represents and stick with it. However difficult nix packaging is, there are certain benefits for many people. I'm not at all proposing to replace anything, just make pacman and nix work nicely together.

2 points

Wich would bring us one step closer to the good old rc.conf. Sounds promising.

-8 points

When there is a system update that requires manual intervention, provide a way for pacman to let you know on the command line, instead of hoping you happen to see the news on the website.

21 points

Gentoo's package manager (Portage) does this via the news system. Whenever you use the package manager it checks for messages and displays a notice in red text to run eselect news to view the message.

2 points
unknown author4 hidden

Deleted before we saved it.

17 points

OP specifically said "And still be The Arch Way" so you appear to be tilting at windmills here.

1 points

AppStream package metadata would be a nice plus and would certainly help in the port of PackageKit to the alpm backend. A proper graphical package managing option is a must for a fully-integrated system.

Someone who understands more about AppStream: Would it be possible to host AppStream metadata offsite at a community repository and then point PackageKit at that location for AppStream, and at the Arch Linux repo for the packages themselves?

16 points

I agree the updated alpm backend would be nice, if only so we could have the full set of Gnome packages available. I don't see any pressing need for a graphical package manager though except as a convenience.

As for appstream, that's a brilliantly obvious idea that makes you wonder why it wasn't implemented that way to begin with. No sense having distro specific data when it'd be far more efficient to do a centralized repo similar to the databases for music and book metadata out there.

4 points

A way to provide debug symbols for packages. I don't want to recompile the entirety of KDE SC.

16 points

there is finally official support for it in makepkg (we had it in kdemod ages ago), but it isn't used by anything yet.

3 points

Biggest problem I have with arch (and all other distros really) is that after a while I end up with a system that has five billion packages installed on it, and no easy way to figure out what I can uninstall without bothering some other part of my system.

15 points

I don't remember where I found it but this script lists all orphan packages:

#!/bin/bash

# This script is designed to help you clean your computer from unneeded packages. The script will find all packages that no other installed package depends on. It will output this list of packages excluding any you have placed in the ignore list. You may browse through the script's output and remove any packages you do not need.

# Enter groups and packages here which you know you wish to keep. They will not be included in the list of unrequired packages later.
ignoregrp="base base-devel"
ignorepkg=""

# Temporary file locations
tmpdir=/tmp
ignored=$tmpdir/ignored
installed=$tmpdir/installed

# Generate list of installed packages and packages you wish to keep.
echo $(pacman -Sg $ignoregrp | awk '{print $2}') $ignorepkg | tr ' ' '\n' | sort | uniq > $ignored
pacman -Qq | sort > $installed

# Do not loop packages you are keeping
loop=$(comm -13 $ignored $installed)

orphans=""

# Check each remaining package. If package is not required by anything and is not on your ignore list, print the package name to the screen.
 for line in $loop; do
	check=$(pacman -Qi $line | awk '/Required By/ {print $4}')
	if [ "$check" == 'None' ]; then
		echo -en "\e[01;37m$line\e[00m"
		reason=$(pacman -Qi $line | awk '/Install Reason/')
		reason=${reason#'Install Reason'}
		if [ "$reason" == ' : Installed as a dependency for another package' ]; then
			echo -e " : \e[01;31mInstalled as a dependency, but no longer needed\e[00m"
			orphans+=$line"\n"
		else
 			echo -e " : \e[01;32mExplicitly installed\e[00m"
		fi
		desc=$(pacman -Qi $line | awk '/Description/')
		echo "${desc#'Description'}"
	fi
done

echo -e "# Orphans List"
if [ "$orphans" != "" ]; then
    echo -e $orphans
else
	echo "# No Orphans"
	echo ""
fi

# Clean up $tmpdir
rm $ignored $installed
4 points

I just threw this together. It's not sophisticated or efficient, and it requires the python libraries plumbum (for magic) and clint (for colors). You might find it useful anyhow. It shows you your packages with binaries in /usr/bin/ that have been accessed least recently, if the package is installed explicitly and no other installed package depends on it. For each match, it shows all its binaries in /usr/bin/ alongside their last access times, as well as the package description and url.

#!/usr/bin/env python3

from plumbum.cmd import ls, pacman, grep
from plumbum.cli import Application
from plumbum import ProcessExecutionError
from clint.textui.colored import green, yellow, blue


class Grump(Application):

    def main(self, number=10):
        bins = ls('-ru', '/usr/bin/').split('\n')
        pkgs = set()
        for bin in bins:
            try:
                pkg = pacman('-Qqo', bin).strip()
                pacman('-Qet', pkg)
            except ProcessExecutionError:
                pass
            else:
                pkgs.add(pkg)
                if len(pkgs) == number:
                    break
        for pkg in pkgs:
            print(green('\n\nCandidate for Removal:'))
            print(yellow(pkg))
            for line in pacman('-Qi', pkg).split('\n'):
                if line.startswith('Description') or line.startswith('URL'):
                    print(blue(line))
            for bin in [line.split('/usr/bin/')[-1] for line in (pacman['-Ql', pkg] | grep['/usr/bin/'])().split('\n') if line.split('/usr/bin/')[-1]]:
                print(yellow(' '.join(ls('-lu', '/usr/bin/' + bin).split()[5:])))


if __name__ == '__main__':
    Grump.run()

EDIT: Oops, I left out the code for printing the package URLs, fixed now.

EDIT2: Here's an updated version with more organized code and slightly better output. But I now realize this is totally inaccurate if you, like me, have the filesystem mounted with noatime.

#!/usr/bin/env python3

from plumbum.cmd import ls, pacman, grep
from plumbum.cli import Application
from plumbum import ProcessExecutionError
from clint.textui.colored import green, yellow, blue


class Grump(Application):

    def pick_pkgs(self, number=10):
        bins = ls('-ru', '/usr/bin/').split('\n')
        pkgs = set()
        for bin in bins:
            try:
                pkg = pacman('-Qqo', bin).strip()
                pacman('-Qet', pkg)
            except ProcessExecutionError:
                pass
            else:
                pkgs.add(pkg)
                if len(pkgs) == number:
                    break
        return pkgs

    def print_pkgs(self, pkgs):
        for pkg in pkgs:
            print(green('\n\nCandidate for Removal:'), yellow(pkg))
            for line in pacman('-Qi', pkg).split('\n'):
                if line.startswith('Description') or line.startswith('URL'):
                    print(blue(line.split(':', 1)[-1].strip()))
            for bin in (pacman['-Qql', pkg] | grep['/usr/bin/'])().strip().split('\n'):
                if bin != '/usr/bin/':
                    print(green(' '.join(ls('-lu', bin).split()[5:-1])), yellow(bin))

    def main(self, packages=10):
        self.print_pkgs(self.pick_pkgs(packages))


if __name__ == '__main__':
    Grump.run()
1 points

I have an alias to do just that in my .bashrc. It's late now but I'll PM tomorrow if you'd like the command. Is was easy, just a pipe and two pacman commands...

0 points

Catalyst drivers working properly.

But that's AMD's fault, not Arch, and I don't see it changing anytime soon.

11 points

This. While it is AMDs fault... Something really should be done to get it in the main packages anyways... The open source drivers don't cut it and the arch logic just hurts itself in this manner. Sometimes exceptions should be made to keep things working.

-2 points

Parallel pacman downloads. Two sessions would suffice. Or start resolving next package before current download ends.

11 points
unknown author

Deleted before we saved it.

2 points

Frankly, this would be rather easy to implement but would it justify the effort? If you use a good mirror, you get to satiate your connection almost instantly. I think it wouldn't serve a purpose on slower connections at all and from my experience on 1Gbit links, the downloads finish within seconds. Whether it takes 4 or 5 seconds for a 500 MiB update doesn't really matter, IMO.

0 points

BFQ/BFS being default?

5 points

Hell no! BFQ is slow as crap and has a couple of known regressions. Boot time with BFQ is twice as long on my SSD. https://lkml.org/lkml/2014/6/4/182

It should be up to the user if he wants to use experimental stuff it should not be forced on them by default.

2 points

Working with the AUR could be easier, and I mean officially so. Helpers exist but they're often frowned upon - don't use packer! It builds in tmpfs and requires root! Use yaourt, use cower bla bla bla...

Pacman could possibly work with the AUR directly. Of course you run the risk of crossing the hinterland between the official repos and unsupported packages ("I installed it with pacman, it's supported!!") but during the process pacman could make it clear that it's unsupported or whatever...

cower is obviously the ideal way of doing it. But building dependencies of dependencies can become a drag.

Just somehow make the AUR easier to deal with without all this controversy over which helper you shouldn't use based on how many children it kills in the night compared to the others.

4 points

Better Wiki moderation, although this falls far more into the territory of ALARM than stock Arch. The Arch Wiki is my #1 resource for remembering how to do X to accomplish Y on an Arch setup, and having that be kept accurate and universal via moderation per-edit (like wikipedia does) would go a long way towards keeping it out of the territory of "This is how you do it if your system is exactly like mine" which is highly prevalent.

3 points

Want to be a wiki moderator and help us out? Would by highly appreciated and you could scratch your own itches, too! After some time of continuous wiki work, talk to one of our mods.

2 points

Include pkgfile in pacman, knowing which package(s) provide a file is quite nice.

3 points

So mine are:

  1. Allow more information to packages about what the binaries need access to, and then encourage filling in the information. This could then later be used to add packages that use Mandatory Access Control that needs less manual configuration.

  2. A tool that generates a pubkey for you, and allows you to sign messages. You fill in a signed captcha on the site to enable it, and after that use that to put messages on AUR/packages, from the commandline. Maybe this should really just be a separate project that archlinux simply uses, though.

Edit: also thanks for all the nice comments!

2 points

A tool that generates a pubkey for you, and allows you to sign messages. You fill in a signed captcha on the site to enable it, and after that use that to put messages on AUR/packages, from the commandline. Maybe this should really just be a separate project that archlinux simply uses, though.

tbfh I'd love to see the site piggyback off of keybase for that, though that project is still young.

2 points
unknown author

Deleted before we saved it.

0 points

Provide a [debug] repo and have *-debug packages be linked to the original packages so that with an extra pacman flag you can easily pull them in when you install and you can get rid of them together with the main package aswell.

The lack of debug info in packages is what keeps a lot of developers using Fedora.

2 points

Frankly, how often do you need debug symbols for ALL the packages in your software stack? I find that when I suspect a bug in a software package, just recompiling that one with ABS and options=(debug) does suffice.

In fact, wouldn't you usually build the upstream vcs directly anyway just to check whether they already solved the bug that you think you're having? Fedora also doesn't help you there.

However, I do acknowledge the convenience of a [debug] repo. We would need to have a debug repo per normal repo though, doubling our total repos.

1 points

I would like to have the old installer back (i saw the entry about https://github.com/helmuthdu/aui and will give it a try), a choice to use either sysv init or systemd and a way to rollback a whole pacman run like "yum history undo <id>" (at least the last one). Nevertheless Arch rocks! :)

2 points
unknown author

Deleted before we saved it.

1 points
unknown author5 hidden

Deleted before we saved it.

0 points

That...does not sound like a good idea. At all.

For one thing, this isn't really a core part of the arch community, voting for the 'best' package here would not introduce quality content into the official repositories.

11 points

There already exists a system where popular AUR pacakges that have compatible licenses can move into [community]. It's the AUR mailing lists.

3 points

Requesting what packages get into [community] can be done via aur-general mailing list.

3 points

Removing systemd from the equation, and testing packages for some weeks before your users end with a broken system.

And improve pacman to allow rollback transactions like "yum"

-7 points

I'm sincerely curious about when has a system gone boom without warning. I use testing and kde-unstable and the only times it broke it was my fault

Ninja edit to suggest looking at btrfs snapshots for rollbacks. I think someone on Reddit posted a script/wrapper/program that integrated pacman and snapshots

4 points

Arch is bleeding edge - that's kind of the point. If you are not willing to accept that the packages might be not as tested as say, debian, then arch may not be the distro for you.

That being said...I've been running arch for almost 5 years now and I can think of only one time that something from the repositories broke my system...and it really was because I didn't read the news on the website. I also don't update my system every day or week for that matter. I usually wait a week or so before installing updates. this gives a little time for other people to find the bugs for me :-)

3 points

and testing packages for some weeks before your users end with a broken system.

use the testing repos and file bug reports then. be a good citizen.

1 points

Less systemd. I'm serious.

-9 points

sysvinit is still in the AUR if you're willing to go through the work of setting it up. Same with openrc and tons of openrc scripts for all the popular services.

8 points

Red hat and centos just moved to systemd in version 7 man. It's over. Once debian completes the move all that will be left is ubuntu.

1 points

An official noob installer that gets you to a usable window manager, a terminal, and a browser and adds desktop links to the wiki's list of programs, the page on pacman, a terminal reference guide, and some articles explaining security on Linux. It should be complete enough that they can get online and learn to use arch while staying as KISS as possible.

EDIT: I want to justify this a little bit more.

I know people who have some linux experience and are interested in arch. A couple of these people have actually made the jump to arch and enjoyed the jump, after the initial period of reading the wiki a whole lot and asking me what they need to learn. There's a disconnect that causes this problem. People don't really grok a lesson on the wiki if they read it without playing around with the thing it's about, but they're afraid to make the jump into arch because they don't know where to begin because they don't understand most of it. A noob installer that brings them to a point where they can use the wiki (without needing a second computer to read off of, as I did the first time I was installing arch) with bookmarks to guide them in their next steps would allow them to learn without giving them a distro that does everything for them. This isn't about doing things for people, it's about giving them a safe start to learn from.

-10 points

That completely goes against the whole KISS ideology. Arch isn't meant for every tom, dick & harry to use and it isn't shown to be that way. If you're unable to c&p from a web page, you shouldn't be able to use a computer let alone Arch.

You can install your own wm & browser from the live cd, and find the web pages yourself. If you're incapable, again, Arch isn't for you.

20 points

We used to have an Installer (AIF) that was completely official, but there was no one willing to maintain it as Arch grew and changed from CD to CD. Now we have the script-based installation that you'll find on any recent CD.

EDIT: You also have the problem, though, that an official "noob guide" like that would have to explain the differences between different Display Managers, Desktop Environments, Window Managers, etc. It would even have to explain what those things, conceptually, are. It would likely be much more in-depth than the Beginner Guide or even the Installation Guide. You're not talking about a guide so much as you're talking about a Manual. And it's all on the wiki already, you're just going to consolidate it all into a monolithic file.

9 points

I read off my phone the first time I installed, it was so tiny... That being said, while I do agree with the idea I feel that the beginner's guide does a decent job of it. I mean the point is to get your hands dirty with some of the internals and config, if you're not ready for that I would say arch isn't what you're looking for.

0 points

A noob installer that brings them to a point where they can use the wiki (without needing a second computer to read off of, as I did the first time I was installing arch) with bookmarks to guide them in their next steps would allow them to learn without giving them a distro that does everything for them. This isn't about doing things for people, it's about giving them a safe start to learn from.

A live graphical environment, from which it is possible to run the existing installation procedure while also having access to a mainstream browser etc.? This does sound like a good idea, as an option rather than a default, for bridging that gap a little (I admit that my first installation of Arch involved a printout of the entire Beginners' Guide!)

0 points

Maybe not an installer, but a better beginner's guide. After a while, it's mostly become useful as a reminder of when and how to export and set locale settings.

However, when I first made the jump, I had no idea that my only user was root, or how to install and use xorg, a DE, or DM. No idea why I had to manually connect to the internet every time I boot or log in.

So maybe adding sections, even just links to other wiki pages, would be useful for setting up users and a brief overview of shells, xorg v wayland, DMs, WMs, DEs, and some typical programs (text editors, office suites, multimedia players, and such), as well as how to install them.

-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.