I am using Arch Linux. I want to do the same thing like apt-get source coreutils
; is it possible to download sources with Pacman? I didn't find a solution in the man pages.
How can I get the source code of a package?
ArchLinux is an open-source, free, independent Linux distribution released in March 2002 by Judd Vinet, inspired by CRUX; This is a light, simple, modern distributed operating system with a minimal and user-centered nature that allows you to customize and control the system a lot so that users can customize different ...
Pacman stores its downloaded packages in /var/cache/pacman/pkg/ and does not remove the old or uninstalled versions automatically.
Enabling multilib Tip: Run pacman -Sl multilib to list all packages in the multilib repository. 32-bit library package names begin with lib32- .
pacman -S asp
say if you want the source code of the Linux command find
find
belongs to: pacman -Qo $(which find)
. The result is "/usr/bin/find is owned by findutils 4.4.2-3".asp export findutils
cd findutils makepkg -o
Now you have your source code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With