You are not logged in.

#1 2025-04-24 23:28:05

christian-oudard
Member
Registered: 2023-02-15
Posts: 5

When using uutils-coreutils, how should I make ls call /usr/bin/uu-ls?

Is there an "official" way of installing the uu- commands from uutils? I was unable to find one in their documentation.
https://uutils.github.io/
https://archlinux.org/packages/extra/x8 … coreutils/

Should I uninstall the original GNU coreutils? Should we create a wiki page for uutils? ArchWiki doesn't currently have one.

I just did this in my .zshrc:

# Create aliases for all uutils commands. Don't try to alias the '[' command.
for full_cmd in /usr/bin/uu-*(N); do
  uu_cmd=${full_cmd##*/}
  cmd=${uu_cmd#uu-}
  if [[ $cmd != '[' ]]; then
    alias "$cmd"="$uu_cmd"
  fi
done

This is an imperfect solution though, because any scripts running on my system will not be able to take advantage. I assume the package maintainer had good reason for not clobbering the binary locations for /usr/bin/ls etc.

What's the right solution?

Offline

#2 2025-05-22 10:28:57

oech3
Member
Registered: 2017-09-03
Posts: 76

Re: When using uutils-coreutils, how should I make ls call /usr/bin/uu-ls?

There are some issues related with this topic on Extra/uutils-coreutils. But not planned yet.
You can try AUR/coreutils-uutils at own risk. But please don't add them to Arch wiki.

Last edited by oech3 (2025-09-03 08:22:54)

Offline

Board footer

Powered by FluxBB