Hacker News new | ask | show | jobs
by mananaysiempre 1046 days ago
On Arch Linux, use

  $ pacman -Qqo $(which ping) # -Qqo is --query --quiet --own
  iputils
  $ asp export iputils && cd iputils
  $ # see PKGBUILD for URLs, or if you just want to have a look:
  $ gpg --import keys/pgp/*.asc # or pass --skippgpcheck to makepkg below
  $ makepkg -od && cd src # -od is --nobuild --nodeps
On NixOS with the new-style CLI, using

  $ nix eval nixpkgs#iputils.src.url
  "https://github.com/iputils/iputils/archive/20221126.tar.gz"
for the second step usually works, although I don’t know how to figure out the package name reliably (ls -l will usually point you in the right direction, but for ping it just gives you the wrapper).