You are not logged in.
Pages: 1
Topic closed
I am currently using ubuntu but because i wanted to build my own system using XFCE or Gnome i am looking once again at ARCH.
But i find the Pacman package mananger to lack a few options that apt does have... if they are there i cannot find them.
On Debian/Ubuntu the command used is "apt-get build-dep <package name>" and the package manager will then tell me all the deps that i need and installs them aswell if i wish.
Is there a way todo the same with the Pacman package manager ? so install only the dependencies of a particular package and not the package itself so i can build it from source ?
Offline
There are a number of wrappers for pacman that will do what you want, they are but a simple search away
Mr Green
Offline
Read the pacman man page, and also the Pacman Rosetta in the wiki. Pacman's dependency handling is excellent, and more than covers the requirement you described above.
Offline
Pacman will never build packages for you, but makepkg can do that. Check its manpage.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
so if i understand properly pacman cannot do it, but a wrapper for pacman might ? such as Pacman Rosetta ... i will have to have a look at that... but it wasn't very clear when i googled it.
@.:B:. The command "build-dep" doesn't actually build the packages, it just installs all the dependencies for a particular package.
Offline
Offline
pacman -Sp --print-format %n <pkg>
And in the order you need to build them too...
Offline
@.:B:. The command "build-dep" doesn't actually build the packages, it just installs all the dependencies for a particular package.
I probably wasn't clear enough: makepkg can do all you want. Pull in dependencies, and let you compile the package. With one command.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
@ .:B:.
Maybe we should change the wiki? 'Automatic' doesn't tell you which app to use.
@ Dennis Beekman
Some dependencies (I'm not talking about build-dependencies here) are optional (e.g. extra features, GUI) and you have to install them by hand: 'pacman -S optdep1 optdep2 optdep3'.
Last edited by karol (2011-01-14 12:01:55)
Offline
right... i see...
I just liked the build-dep command for my games so they're minimal deps where installed and i then build the games from source afterwards so i have the latest version.
But i gues we will have to use a wrapper for pacman or do it oldschool by hand
Thanxs
Last edited by Dennis Beekman (2011-01-14 12:08:42)
Offline
As .:B:. said, "makepkg -s" does that provided you are using a PKGBUILD to build the game (which you should).
Offline
Just do 'makepkg -s PKGBUILD':
-s, --syncdeps
Install missing dependencies using pacman. When build-time or run-time dependencies are not found, pacman
will try to resolve them. If successful, the missing packages will be downloaded and installed.
Last edited by karol (2011-01-14 12:15:03)
Offline
Makepkg will do the job...
I think wrappers [clyde packer etc...] cover all bases, if pacman does not have required deps [which is sometimes the case] then you need something to pull from aur
EDIT but I could be wrong!
Last edited by Mr Green (2011-01-14 12:55:06)
Mr Green
Offline
Since you say you've looked into Arch in the past, and are strongly considering it now, you oughtta follow the advice of the amply experienced responders here and read the wiki pages on Pacman and Makepkg. These posters have more-or-less answered your questions completely. Since you have shown a genuine interest so far, here's a little more info: The wrappers Mr. Green refers to are an option you can use to deal with the Arch User Repository--you might think of it as a giant PPA, only in the AUR's case all packages are built from source using scripts. For the sake of security and simplicity (refer to the Arch Way in the wiki) Pacman only deals with packages from the binary repos. Makepkg is a tool that uses scripts to build binary packages from source tarballs, which can then be handled by Pacman. Pacman wrappers often simply tie together the two processes. Not only do both tools cover what you're looking to do, but I daresay many, many people do just that regularly. I have half-a-dozen or so packages I build from vcs every week. There you have it. If you do come to Arch, you'll be totally welcome--these folks are great--but you will be expected to do the majority of this sort of research on your own. Hope this helps.
P.S. : I hope this doesn't come off as snide; I just crawled outta bed fifteen minutes ago, and the caffeine hasn't kicked me in the head yet.
Offline
This thread is confusing to someone who doesn't know what the build-dep option to apt-get is. It installs the build dependencies of a package so that it may be built. The usual tool for building packages for Arch Linux is makepkg and it can do this automatically by calling pacman on the user's behalf. The OP is advised to peruse the man pages and wiki a little more, especially the articles on AUR.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
I know it ya way old disscussion! anyways!
if i have to complete the dependecies to complie the source! what would be the solution.
./configure is not generating the Makefile!
Offline
rhoit, this question has been answered, thoroughly and repeatedly in this thread.
You have a similar question to the OP - did you read the answers in this thread? If you are having trouble using makepkg, start your own thread giving the relevant information: the package you're trying to build, the dependencies that are missing, and any error messages you recieve.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I think rhoit asked about similar stuff in the wiki: https://wiki.archlinux.org/index.php/Ta … an_Rosetta
Offline
Hi rhoit, you need to make a PKGBUILD. There may already be one for the package you are trying to install. Search the repositories and search AUR. If none exist, you can request someone else build one for you (AUR Issues, Discussion & PKGBUILD Requests) or make a PKGBUILD yourself. As I wrote almost two years ago, read the man pages. If something is unclear, start a new thread and ask about that.
Closing,
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1
Topic closed