Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download source code with Pacman on Arch Linux? [closed]

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?

like image 275
Ning Sun Avatar asked Dec 17 '10 07:12

Ning Sun


People also ask

Is Arch fully open-source?

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

Where are pacman packages stored?

Pacman stores its downloaded packages in /var/cache/pacman/pkg/ and does not remove the old or uninstalled versions automatically.

How do I enable Multilib in Arch?

Enabling multilib Tip: Run pacman -Sl multilib to list all packages in the multilib repository. 32-bit library package names begin with lib32- .


1 Answers

  1. pacman -S asp
  2. say if you want the source code of the Linux command find

    1. find out which package the command find belongs to: pacman -Qo $(which find). The result is "/usr/bin/find is owned by findutils 4.4.2-3".
  3. asp export findutils

  4. cd findutils makepkg -o 

Now you have your source code.

like image 180
McBear Holden Avatar answered Sep 27 '22 23:09

McBear Holden