XAMPPRocky / tokei

Count your code, quickly.
Other
11.38k stars 542 forks source link

Yum installation #430

Open vRallev opened 4 years ago

vRallev commented 4 years ago

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

XAMPPRocky commented 4 years ago

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?

vRallev commented 4 years ago

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.

XAMPPRocky commented 4 years ago

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

FranklinYu commented 4 years ago

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

jttgit commented 2 years ago

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.