You are not logged in.

#1 2013-09-29 03:58:29

Kolt Penny
Member
Registered: 2013-09-12
Posts: 107

Downloading from the AUR

I know this is a really simple and basic question but it really drives me crazy.

Trying to install any software from the wiki I always get stopped by this quote: "yoursoftware can be found in the official repositories" and I get really confused.

It's simple by doing it with pacman but I also want to learn how to do it if I can't find something in pacman.

[EDIT] BTW I'm currently running Arch entirely on shell, i don't want to move to a desktop environment until I fully understand the most basic form of Arch.

Last edited by Kolt Penny (2013-09-29 04:00:28)

Offline

#2 2013-09-29 04:04:52

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,624

Re: Downloading from the AUR

Did you look in the wiki yet?

Offline

#3 2013-09-29 04:10:59

Kolt Penny
Member
Registered: 2013-09-12
Posts: 107

Re: Downloading from the AUR

Yeah but I get confused on how to exactly get the actual URL where the file is stored.

Offline

#4 2013-09-29 04:34:46

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Downloading from the AUR

Just above the section of the wiki page skunktrader provided you with
there is a link to the AUR web interface. Ther you have the ability to search for packages in the AUR. This search will guide you to the actual
package page.

Offline

#5 2013-09-29 04:43:04

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Downloading from the AUR

Since you are still in text mode, if you don't have access to another computer, you can view the AUR page in something like links, elinks, lynx, or w3m.  Once you learn about how things work and what needs to be downloaded and why, you might want to take a look at cower (which is actually in the AUR), as it allows searching the AUR from the command line, and it can download the source tarball that you use to build the package (and it unpacks it for you in the directory of choice).

As far as not installing a GUI until "fully understanding" the command line, I think you may never actually get to a GUI.  Just for the sake of a web browser, it might be wise to install a simple window manager and then try to utilize your terminal of choice as much as possible.

Offline

#6 2013-09-29 04:46:15

Kolt Penny
Member
Registered: 2013-09-12
Posts: 107

Re: Downloading from the AUR

But is there a code to connect within the shell so I can start navigating?

Offline

#7 2013-09-29 05:04:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Downloading from the AUR

Kolt Penny wrote:

But is there a code to connect within the shell so I can start navigating?

I don't really understand what you are asking here.

If the question is now to search through packages in the AUR (which aren't really packages at all, but rather scripts to build said package), then I was suggesting above that you should use a text based browser to do that stuff.

So install a text based browser.  The live media has elinks, so that is probably a good choice.  Then simply do

$ elinks http://aur.archlinux.org 

.  It may not look like what you would see in firefox or chromium, but all the necessary text will be there.

Offline

#8 2013-09-29 05:08:48

Kolt Penny
Member
Registered: 2013-09-12
Posts: 107

Re: Downloading from the AUR

WonderWoofy wrote:
Kolt Penny wrote:

But is there a code to connect within the shell so I can start navigating?

I don't really understand what you are asking here.

If the question is now to search through packages in the AUR (which aren't really packages at all, but rather scripts to build said package), then I was suggesting above that you should use a text based browser to do that stuff.

So install a text based browser.  The live media has elinks, so that is probably a good choice.  Then simply do

$ elinks http://aur.archlinux.org 

.  It may not look like what you would see in firefox or chromium, but all the necessary text will be there.

I guess that's the last thing I can do, btw I have links already, I just wanted to know if it could be done without additional software.

Offline

#9 2013-09-29 05:11:52

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Downloading from the AUR

You have links already, so why not use it?

It can be done, but this means learning how to use curl or wget.  I believe you will have to install wget, though curl is a dependency of pacman (it is how it downloads the packages).  Both of those tools are pretty complex and certainly not ideal for someone to go about navigating through a package search like the aur.

Offline

#10 2013-09-29 05:19:18

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: Downloading from the AUR

I guess that's the last thing I can do, btw I have links already, I just wanted to know if it could be done without additional software.

Aren't you talking about yaourt


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#11 2013-09-29 05:20:45

Kolt Penny
Member
Registered: 2013-09-12
Posts: 107

Re: Downloading from the AUR

WonderWoofy wrote:

It can be done, but this means learning how to use curl or wget.  I believe you will have to install wget, though curl is a dependency of pacman (it is how it downloads the packages).  Both of those tools are pretty complex and certainly not ideal for someone to go about navigating through a package search like the aur.

True. Thank you very much. Dog pic is awesome.

Offline

#12 2013-09-29 05:36:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Downloading from the AUR

arcon wrote:

I guess that's the last thing I can do, btw I have links already, I just wanted to know if it could be done without additional software.

Aren't you talking about yaourt

Yaourt is additional, and unnecessary: please don't recommend it to people who have yet to grasp how AUR works...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2013-09-29 06:30:47

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: Downloading from the AUR

Alright, if not yaourt & if it is not solved then:

i) You need to search the desired package.

ii) Then you need to download that package(or i say tarball containing PKGBUILD file) via curl.

iii) Remeber to install base-devel package.

iv) Build the package.

v) Install the package.

Hope it helps!!

EDIT: base-devel is a package group(having some packages for development purposes) don't confuse it as a package.

Last edited by arcon (2013-09-29 06:40:44)


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#14 2013-09-29 07:24:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Downloading from the AUR

arcon wrote:

Alright, if not yaourt & if it is not solved then:

i) You need to search the desired package.

ii) Then you need to download that package(or i say tarball containing PKGBUILD file) via curl.

iii) Remeber to install base-devel package.

iv) Build the package.

v) Install the package.

Hope it helps!!

EDIT: base-devel is a package group(having some packages for development purposes) don't confuse it as a package.

This is the type of thing that users are encouraged to learn on their own.  These forums are not about spoon feeding answers to users, but rather helping them solve their own problems by offering guidance and clues to where the problem might be.

This case is particularly one where it is expected that the user will find info on their own with a nudge in the right direction, as this information is in the wiki.  Not only that, but the second post directed Kolt Penny to the right place.

This type of thing may be helpful in the short term, but does nothing to help a new user strike out on their own with the confidence to solve their own problems.

Offline

#15 2013-09-29 15:01:41

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Downloading from the AUR

Well, I disagree. As the OP has already been pointed to the wiki page and obviously still has questions, I think we need to probe further to see what is confusing. A careful, short, terse step by step and then see what is still confusing, seems to be the right approach. arcon did a nice job of pointing to the correct place for each of the steps.

Now, the OP should tell us if it helps and, if it does, what the wiki does wrong that didn't help. Or ask more questions about each step.

Offline

#16 2013-09-29 15:17:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Downloading from the AUR

'Newbie Corner' doesn't mean 'we will hand-hold you every step of the way'.

Offline

#17 2013-09-29 15:51:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,394
Website

Re: Downloading from the AUR

For a while I just used wget and makepkg (in a bash function):

 wget https://aur.archlinux.org/packages/<first_two_letters_of_pkg_name>/<pkg>/<pkg>.tar.gz
 tar -xzf <pkg>.tar.gz
 cd <pkg>
 makepkg -si

Searching takes a bit more, but to download build and install, that is all that is needed.

edit: darn bbcode mangling fake-urls - added code tags.

Last edited by Trilby (2013-09-29 15:53:58)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#18 2013-09-29 16:29:01

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Downloading from the AUR

If you really want to do all of this via curl, use the RPC interface.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#19 2013-09-29 17:05:10

progandy
Member
Registered: 2012-05-17
Posts: 5,283

Re: Downloading from the AUR

Searching takes a bit more, but to download build and install, that is all that is needed.

I would suggest cower (in the AUR) to search and download AUR packages. Basically it gives a nicely formatted output for the RPC interface, uses curl to download and can compare the installed version number to the current AUR version.

On a fresh install I start using the AUR with something like this:

mkdir /tmp/cower && cd /tmp/cower && curl https://aur.archlinux.org/packages/co/cower/PKGBUILD > PKGBUILD && makepkg -si
cower -s ...
cower -d ...
makepkg -si

Last edited by progandy (2013-09-29 17:10:31)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#20 2013-09-29 18:12:42

Jellicent
Member
From: Berlin
Registered: 2013-09-13
Posts: 189

Re: Downloading from the AUR

Download the tarball with whatever method you have at your disposal , look at PKGBUILD (it might come in handy), build it, install it.
That's basically what I do every time.

Offline

Board footer

Powered by FluxBB