tokei icon indicating copy to clipboard operation
tokei copied to clipboard

Yum installation

Open vRallev opened this issue 4 years ago • 5 comments

Is it possible to install Tokei with yum? Our CI machines only can use yum and not dnf.

vRallev avatar Jan 15 '20 02:01 vRallev

Thank you for your issue! Looking at this search https://pkgs.org/download/tokei it doesn't appear to available on CentOS. I don't maintain any of the package mirrors, nor do I know what would be required to make available to yum. If anyone is willing to maintain the mirror, or knows what's required, I would be open to including it in the installation.

@vRallev Relatedly I'm curious what you're using tokei in CI for, if you can say?

XAMPPRocky avatar Jan 15 '20 10:01 XAMPPRocky

We run a job once a day to collect stats about our repository: how many modules do we have, what's their size, what's the cost to maintain them. Part of the size and cost are lines of code. Right now we use CLOC, but I'd rather use Tokei because it would reduce the time this job runs from 12 to 5min.

vRallev avatar Jan 15 '20 14:01 vRallev

@vRallev Interesting, you can always get a pre-built binary from GitHub releases, while waiting for yum availability. https://github.com/XAMPPRocky/tokei/releases

XAMPPRocky avatar Jan 15 '20 15:01 XAMPPRocky

@vRallev IIUC CentOS is from RHEL, which is cut from Fedora. Now that tokei is already in Fedora, it will probably in next RHEL, thus next CentOS.

Is there any hosting service for user repository for CentOS? Like for Ubuntu at least one can maintain a package on Launchpad.

FranklinYu avatar Mar 21 '20 05:03 FranklinYu

I just ran into this issue on Centos 7 in 2022, so in case anyone else finds this from Google search like I did and wants to install it.. Being a rust program, you can install it on Centos from the command line: "cargo install tokei" (that requires rust/rustup/cargo to be installed and it installs by default as a user (instead of global) app, but those are easy issues). Thanks for a killer program.

jttgit avatar Feb 21 '22 08:02 jttgit