PKG: program locally compiled from source, latest released version
PKG-git: program locally compiled from source, latest commit to git (or other version control). May have newer features than the latest release, but may also have more bugs.
PKG-bin: program not locally compiled; pre-compiled binaries (often provided by the project) are used.
In general I prefer PKG or PKG-git (depending on whether I want/need unreleased features or want to help test the program). PKG-bin generally work fine but I prefer to compile against the versions of the libraries etc I have installed where possible.
Why do you prefer to compile against locally installed library versions? Should it not be indifferent if they are ABI-compatible? If they weren't, it wouldn't really run anyway, right?
Another thing to note about -bin packages, adding to what everyone else has said: some packages for programs written in Haskell (such as pandoc) require huge amounts of additional Haskell libraries and compilers to install in their official PKG versions, so the AUR PKG-bin is preferable if you don't need all the Haskell stuff.
I recently just switched to paru from yay and almost bailed when it wanted 500+ MB of Rust tools and then quite a few library dependencies from Cargo. paru-bin was a few MB.
I always use -bin if available, it's the same as normal pkg except you don't have to wait for your PC to compile it... If you for some reason want bleeding edge version use -git but you'll have to compile it.
"-git" is usually the latest version straight from the main-branch of the git repository, i.e. a potentially unstable development version. Use it if you require the newest features that aren't in the regular release yet.
no suffix means that it's the regular release version. When in doubt, use this one. It should be built from the upstream source code, but often it just takes the pre-built binary from upstream, especially with commercial software where no source is available.
"-bin" denotes packages that have precompiled binaries as their basis, usually from .deb packages. They offer quicker install speeds but require that you trust the binary blob and can't use compile flags optimized for your system.
Of course none of these are strictly enforced rules afaik, so plenty of packages don't adhere to these guidelines. Always read the pkgbuild!
I use -bin if it is a well-known, trusted project and I trust their binaries to be compiled properly and what they claim to be (e.g., brave-bin, paru-bin). Especially if it is a large codebase that takes a long time to compile. I also use it for haskell packages like shellcheck to avoid pulling in hundreds of dependencies. If it is a small codebase or one that is less well-known, I use the normal version to compile it myself, just to minimize the risk that comes with pulling in random untrusted binaries from the web. There are also ways to optimize compiling for your specific system, but I'm not sure how that works. I use -git if the devs don't put a lot of stable releases out (e.g., dolphin-emu-git)
Often, -bin packages are actually deb packages that are reconfigured. When it comes to the AUR, your best bet is to actually read the pkgbuild file, so you know what you're getting. -git implies compiling the binary from scratch. In the case all three exist, it's probably two different people submitting some sort of binary version.
I go always with bin so that I don't have to install compilers and libraries for languages I don't use and also I have a crappy laptop, compiling can take easily 30min for an average software for me.
PKG: Stable, compiled from source unless that is for some reason impossible (e.g. proprietary software usually just hacks a DEB package into a Pacman package). The advantage is that you can modify the PKGBUILD, set build flags, etc.
PKG-git: Grab the latest source code from the repo and compile from source.
PKG-bin: Binary package, pre-compiled. Installs faster as you don't need to wait on the compiler.
That all depends as best is in the eye of the beholder. For some I use the git pkg because I want the bleeding edge, for others I use the bin pkg out of convenience so I don't have to download lots of dependencies, most of the time I pick the the regular pkg and build it manually everytime.
13 hours and nobody has mentioned anything along the lines of age or condition of packages and how important it is to spend just a few minutes checking out the supposed "options" you'll find yourself presented with.
To further answer the general question asked by OP, i feel that one crucial step when dealing with the AUR is to quickly investigate or research the package(s) you're considering. What may seem like the "right choice" because the name matches or it's labeled "git", "bin", etc. doesn't mean it should be blindly installed.
I said investigation, yes, but this is made incredibly easy since the package detail page contains essentially everything you need to aide in your determination. Version number, upstream URL, date of initial submission and most importantly the date of the last package update are all available to note. I want to reiterate this should be done even if it's the only package available, since the reason to do this doesn't falter just because there aren't multiple packages being compared!
Some things to check for include making sure the package is not out-of-date(happens.. a lot), abandoned/orphaned (not always flagged or obvious), error or issue-prone (based on user-feedback), or any other peculiar properties. I always check the upstream URL and make sure it's the latest, greatest, or even still exists!
While on the subject, make it a habit to always search both repositories when installing something new, or even if it's been a while. Some of the things that have an official package will surprise you, and of course with-out a doubt that applies the other-way around, too!
Hopefully this will become a habit for those of you reading this, if it hasn't already...
i think everyone felt like being heard and went for putting in their two cents on some specific package OP mentioned (and probably did want an answer for) but missed the general question by a long-shot...
anyways, i know what you mean, at least i think i do. either way i'm not saying it's the best advice in the world, but i provided some insight that i reckon anybody who might actually stand to benefit from reading it will never get a fair chance, being a little late to the party here and all... shrug
oh and tried to revive your comment from the poor judgement in down-voting, got you back to 0, best i can do. as i may have conveyed, i felt a similar way when reading through this thread, too.
He got downvoted not because he didn't agree with the advise that was given by most people, but because he just nagged that the advise was poor without giving any advise on what should be done according to him. If he had given an explanation on why he thought it was poor advise (like you did in your other comment), he'd probably not be downvoted as much.
Comments like his don't really help OP and doesn't add anything to the discussion.
41 comments
In general I prefer PKG or PKG-git (depending on whether I want/need unreleased features or want to help test the program). PKG-bin generally work fine but I prefer to compile against the versions of the libraries etc I have installed where possible.
Why do you prefer to compile against locally installed library versions? Should it not be indifferent if they are ABI-compatible? If they weren't, it wouldn't really run anyway, right?
Deleted before we saved it.
Another thing to note about -bin packages, adding to what everyone else has said: some packages for programs written in Haskell (such as pandoc) require huge amounts of additional Haskell libraries and compilers to install in their official PKG versions, so the AUR PKG-bin is preferable if you don't need all the Haskell stuff.
Example: venerable
pandocTIL pandoc-bin does not download all these deps. You've made my life a bit simpler now.
Haskell and Go also
And Rust just takes ages to compile :)
damn, I never new i could avoid all that haskell dependencies for pandoc.
I recently just switched to
parufromyayand almost bailed when it wanted 500+ MB of Rust tools and then quite a few library dependencies from Cargo.paru-binwas a few MB.I always use -bin if available, it's the same as normal pkg except you don't have to wait for your PC to compile it... If you for some reason want bleeding edge version use -git but you'll have to compile it.
Me too, but i always check the source url of the package to see if it points to the correct github repo or the correct project website.
Exactly this
Have you ever experienced a package which was trying to trick you into installing something bogus?
"-git" is usually the latest version straight from the main-branch of the git repository, i.e. a potentially unstable development version. Use it if you require the newest features that aren't in the regular release yet.
no suffix means that it's the regular release version. When in doubt, use this one. It should be built from the upstream source code, but often it just takes the pre-built binary from upstream, especially with commercial software where no source is available.
"-bin" denotes packages that have precompiled binaries as their basis, usually from .deb packages. They offer quicker install speeds but require that you trust the binary blob and can't use compile flags optimized for your system.
Of course none of these are strictly enforced rules afaik, so plenty of packages don't adhere to these guidelines. Always read the pkgbuild!
The "normal", non bin/git versions ONLY use precompiled binaries if no source is available. Otherwise, Arch requires the use of the -bin suffix.
I use -bin if it is a well-known, trusted project and I trust their binaries to be compiled properly and what they claim to be (e.g., brave-bin, paru-bin). Especially if it is a large codebase that takes a long time to compile. I also use it for haskell packages like shellcheck to avoid pulling in hundreds of dependencies. If it is a small codebase or one that is less well-known, I use the normal version to compile it myself, just to minimize the risk that comes with pulling in random untrusted binaries from the web. There are also ways to optimize compiling for your specific system, but I'm not sure how that works. I use -git if the devs don't put a lot of stable releases out (e.g., dolphin-emu-git)
If you just want the latest stable version and don't mind the compile time, use
rpcs3.Deleted before we saved it.
rpcs3is the stable version,rpcs3-gitis the latest development version from Github.Often, -bin packages are actually deb packages that are reconfigured. When it comes to the AUR, your best bet is to actually read the pkgbuild file, so you know what you're getting. -git implies compiling the binary from scratch. In the case all three exist, it's probably two different people submitting some sort of binary version.
I go always with bin so that I don't have to install compilers and libraries for languages I don't use and also I have a crappy laptop, compiling can take easily 30min for an average software for me.
Most explanations are Great, just take into consideration that non bin packages take time to compile, every update as well.
PKG: Stable, compiled from source unless that is for some reason impossible (e.g. proprietary software usually just hacks a DEB package into a Pacman package). The advantage is that you can modify the PKGBUILD, set build flags, etc.
PKG-git: Grab the latest source code from the repo and compile from source.
PKG-bin: Binary package, pre-compiled. Installs faster as you don't need to wait on the compiler.
Deleted before we saved it.
That all depends as best is in the eye of the beholder. For some I use the git pkg because I want the bleeding edge, for others I use the bin pkg out of convenience so I don't have to download lots of dependencies, most of the time I pick the the regular pkg and build it manually everytime.
Most of the time use PKG-bin
13 hours and nobody has mentioned anything along the lines of age or condition of packages and how important it is to spend just a few minutes checking out the supposed "options" you'll find yourself presented with.
To further answer the general question asked by OP, i feel that one crucial step when dealing with the AUR is to quickly investigate or research the package(s) you're considering. What may seem like the "right choice" because the name matches or it's labeled "git", "bin", etc. doesn't mean it should be blindly installed.
I said investigation, yes, but this is made incredibly easy since the package detail page contains essentially everything you need to aide in your determination. Version number, upstream URL, date of initial submission and most importantly the date of the last package update are all available to note. I want to reiterate this should be done even if it's the only package available, since the reason to do this doesn't falter just because there aren't multiple packages being compared!
Some things to check for include making sure the package is not out-of-date(happens.. a lot), abandoned/orphaned (not always flagged or obvious), error or issue-prone (based on user-feedback), or any other peculiar properties. I always check the upstream URL and make sure it's the latest, greatest, or even still exists!
While on the subject, make it a habit to always search both repositories when installing something new, or even if it's been a while. Some of the things that have an official package will surprise you, and of course with-out a doubt that applies the other-way around, too!
Hopefully this will become a habit for those of you reading this, if it hasn't already...
As a rule of thumb, i always go for the bin.
The raccoon agrees.
I'm quite surprised by all the poor advice in here.
i think everyone felt like being heard and went for putting in their two cents on some specific package OP mentioned (and probably did want an answer for) but missed the general question by a long-shot...
anyways, i know what you mean, at least i think i do. either way i'm not saying it's the best advice in the world, but i provided some insight that i reckon anybody who might actually stand to benefit from reading it will never get a fair chance, being a little late to the party here and all... shrug
oh and tried to revive your comment from the poor judgement in down-voting, got you back to 0, best i can do. as i may have conveyed, i felt a similar way when reading through this thread, too.
He got downvoted not because he didn't agree with the advise that was given by most people, but because he just nagged that the advise was poor without giving any advise on what should be done according to him. If he had given an explanation on why he thought it was poor advise (like you did in your other comment), he'd probably not be downvoted as much.
Comments like his don't really help OP and doesn't add anything to the discussion.