Open jgrund opened 4 years ago
Any Progress?
FYI.
Author="Peltoche"; Repo="lsd"; latest_url="https://api.github.com/repos/$Author/$Repo/releases/latest"; \
V=$(curl --silent $latest_url | grep -Eo '"tag_name": "v?(.*)"' | sed -E 's/.*"([^"]+)".*/\1/'); \
Latest_tar="$Repo-$V-x86_64-unknown-linux-musl.tar.gz" \
&& curl -sOL "https://github.com/$Author/$Repo/releases/download/$V/$Latest_tar" \
&& tar xzvf $Latest_tar -C . \
&& sudo sh -c "cp ./$Repo-$V-x86_64-unknown-linux-musl/$Repo /usr/local/bin/$Repo" \
&& rm $Latest_tar
For bat
, you can follow this:
Author="sharkdp"; Repo="bat"; latest_url="https://api.github.com/repos/$Author/$Repo/releases/latest"; \
V=$(curl --silent $latest_url | grep -Eo '"tag_name": "v?(.*)"' | sed -E 's/.*"([^"]+)".*/\1/'); \
Latest_tar="$Repo-$V-x86_64-unknown-linux-musl.tar.gz" \
&& curl -sOL "https://github.com/$Author/$Repo/releases/download/$V/$Latest_tar" \
&& tar xzvf $Latest_tar -C . \
&& sudo sh -c "cp ./$Repo-$V-x86_64-unknown-linux-musl/$Repo /usr/local/bin/$Repo" \
&& rm $Latest_tar
Anyone who would like to package this up for any operating system is welcome. Most of the packages for lsd are maintained by external maintainers. Feel free to reach out if you need help with the releases like having a specific architecture supported.
It would be useful to have a Copr repo for easy usage with RHEL / CentOS.