Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add a "coreutils listutils" entry to help with automated installations? #6466

Closed
alshdavid opened this issue Jun 13, 2024 · 7 comments

Comments

@alshdavid
Copy link

I like to install uutils by hand from the binary. To do this I wget the latest binary and create symlinks for each util within coreutils

The output of coreutils at the moment is:

$ ./coreutils
coreutils 0.0.26 (multi-call binary)

Usage: coreutils [function [arguments...]]

Currently defined functions:

    [, arch, b2sum, b3sum, base32, base64, basename, basenc, cat, chgrp, chmod, chown, chroot,
    cksum, comm, cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env, expand,
    expr, factor, false, fmt, fold, groups, hashsum, head, hostid, hostname, id, install, join,
    kill, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod, mktemp, more, mv, nice, nl,
    nohup, nproc, numfmt, od, paste, pathchk, pinky, pr, printenv, printf, ptx, pwd, readlink,
    realpath, rm, rmdir, seq, sha1sum, sha224sum, sha256sum, sha3-224sum, sha3-256sum, sha3-
    384sum, sha3-512sum, sha384sum, sha3sum, sha512sum, shake128sum, shake256sum, shred, shuf,
    sleep, sort, split, stat, stdbuf, stty, sum, sync, tac, tail, tee, test, timeout, touch,
    tr, true, truncate, tsort, tty, uname, unexpand, uniq, unlink, uptime, users, vdir, wc, who,
    whoami, yes

Which is a little hard to parse. Could we add a coreutils listutils function that prints the utils with a newline separator?

$ ./coreutils listutils
arch
b2sum
b3sum
base32
base64
basename
...

This would allow me to write a simplified script that automates the generation of symlinks from a bash/powershell script

@cakebaker
Copy link
Contributor

It's already there: coreutils --list

@alshdavid
Copy link
Author

Am I missing something?
image

@tertsdiepraam
Copy link
Member

#6251

It's fairly new so you might not have a version with that feature yet.

@JoshMcguigan
Copy link

This is great!

Does uutils/coreutils have a policy on tagging new versions? A new tagged release would help pull this into package managers.

Either way, thanks for implementing this!

@sylvestre
Copy link
Contributor

Does uutils/coreutils have a policy on tagging new versions?

when someone asks :)
and around every two months

@JoshMcguigan
Copy link

JoshMcguigan commented Jun 23, 2024

Thanks for tagging 0.0.27!

@sylvestre
Copy link
Contributor

welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants