You are not logged in.

#1 2008-02-21 14:12:33

arch8w
Member
Registered: 2008-02-20
Posts: 9

How do I add packages manually?

For offline installation, how do I add packages manually?

I have saved some packages into CD, and then added it to /var/cache/pacman/.

I ran 'pacman -S package' and nothing happens.

Offline

#2 2008-02-21 14:19:04

kevin89
Arch Linux f@h Team Member
From: Netherlands
Registered: 2007-03-14
Posts: 218

Re: How do I add packages manually?

No experience with it, but can't you just copy the packages to for example /home/arch8w/ and then use pacman -U /home/arch8w/package?

Offline

#3 2008-02-21 14:43:14

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: How do I add packages manually?

No need to copy it to the harddrive, just do 'pacman -U /path/to/package.tar.gz' (you might want to 'man pacman').


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#4 2008-02-21 15:39:28

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How do I add packages manually?

[vEX] and kevin98 are right, you should use pacman -U <...tar.gz>. If you don't want to do pacman -U <...tar.gz>, but pacman -S, there are two things:
- the default dir for packages is /var/cache/pacman/pkg/
- you need to update pacman database somehow (an equivalent of pacman -Sy): and I think this is not so easy to do when you're offline.

Offline

#5 2008-02-22 14:24:37

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

I used the "pacman -U <package>" command and got a:

error: failed to add target '<package>' (package name is not valid)

How is that so?  I got the package straight from http://archlinux.org/packages .

Last edited by arch8w (2008-02-22 14:24:54)

Offline

#6 2008-02-22 14:34:42

xdeusx
Member
Registered: 2007-10-15
Posts: 168

Re: How do I add packages manually?

you have to use that command directly on the package you want to install
you have to define a path to the file...

like vex said,
pacman -U /path/to/package.tar.gz

Offline

#7 2008-02-22 14:35:51

noalwin
Member
From: Spain
Registered: 2007-06-08
Posts: 115

Re: How do I add packages manually?

pacman -A someapp-1.0-1-i686.pkg.tar.gz
Use pacman -U to update an installed package

Offline

#8 2008-02-22 14:55:36

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

you have to define a path to the file...

The package is the working directory.  Therefore the package name alone should be okay.  But I have tried the full path too and it did not work.

pacman -A gave me the same error message.

Offline

#9 2008-02-22 15:02:00

xdeusx
Member
Registered: 2007-10-15
Posts: 168

Re: How do I add packages manually?

put in your complete console output...
i guess you are missing the .pkg.tar.gz at the end...

[deus@laptop download]$ sudo pacman -U archlinux-menus-1.2-1.pkg.tar.gz 
loading package data... done.
checking dependencies...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) upgrading archlinux-menus                     [#####################] 100%
[deus@laptop download]$

Offline

#10 2008-02-22 15:02:32

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: How do I add packages manually?

noalwin wrote:

pacman -A someapp-1.0-1-i686.pkg.tar.gz
Use pacman -U to update an installed package

Don't use pacman -A.  It's deprecated.  pacman -U does it all now - check the manpage.

The package is the working directory.  Therefore the package name alone should be okay.

True - but are you sure you're using the full filename, and not just the package name itself?  You need to do pacman -U pkgname-pkgver-pkgrel-arch.pkg.tar.gz, not just pacman -U pkgname

Offline

#11 2008-02-22 15:08:50

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

Yes, of course, I am sure I am using the full filename.

Offline

#12 2008-02-22 15:22:25

xdeusx
Member
Registered: 2007-10-15
Posts: 168

Re: How do I add packages manually?

you said you got it from http://archlinux.org/packages
there are no packages to download...
maybe you downloaded the source code..

Offline

#13 2008-02-22 15:32:13

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

Is that some kind of joke by the Arch site?

They put a search bar in the main page called "Package Search:"  I make a search, get a hit, I download the file, which does NOT show *src* as part of the filename.

If that is not where I get packages, where am I suppose to get the packages from manually?

Last edited by arch8w (2008-02-22 15:32:56)

Offline

#14 2008-02-22 15:36:23

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: How do I add packages manually?

arch8w wrote:

Is that some kind of joke by the Arch site?

They put a search bar in the main page called "Package Search:"  I make a search, get a hit, I download the file, which does NOT show *src* as part of the filename.

You download what file?  What link did you click after you "got a hit"?  Was it a link under the "sources:" heading?  There is no link on the package search page to directly download binary packages at current, although that could be a neat feature to request.

If you want to download pre-built packages, navigate to one of the mirrors in your /etc/pacman.d/mirrorlist file (for example, ftp://mirror.cs.vt.edu/pub/ArchLinux/core/os/i686) in your browser and download 'em from there.

Offline

#15 2008-02-22 16:02:29

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

You download what file?

cdrkit.  I did not mention it because it should not matter.

What link did you click after you "got a hit"?

The only one provided when I made the search.

Was it a link under the "sources:" heading?

Yes.  But I was mislead by the "Package Search" part.  And by "Sources:", I thought they were talking about a source list, as in a list of mirrors to fetch the packages from.  Also, Arch is suppose to be a binary-based distribution.

So this means that I will have to:

untar
cd
./configure
make
make install

for everything?  Or is there an easy way around this?

By the way, the link you gave me leads to an empty FTP server.  I went into other mirror sites using the same sub-links and it gives me a list of packages that is already included in the CD.

Last edited by arch8w (2008-02-22 16:14:41)

Offline

#16 2008-02-22 16:13:46

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: How do I add packages manually?

Offline

#17 2008-02-22 16:23:13

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

bangkok_manouel, how about not knee-jerking?  Slapping a link like that is only cool-against-newbies if the answer can be easily answered.

Read the title or the first line in the OP.  Tell me where in the link you have slapped can it be easily answered.

Offline

#18 2008-02-22 16:34:30

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: How do I add packages manually?

arch8w wrote:

Tell me where in the link you have slapped can it be easily answered.

You just proved me you definitely have to >>!*read*!<< the content of that link
http://wiki.archlinux.org/index.php/Beg … ith_pacman

Offline

#19 2008-02-22 16:37:01

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: How do I add packages manually?

If you went to other mirrors and only had packages on the install cd than you probably were in the wrong repository. That would have been core, cdrkit is in extra, see here ftp://ftp.archlinux.org/extra/os/i686

Offline

#20 2008-02-22 17:55:00

arch8w
Member
Registered: 2008-02-20
Posts: 9

Re: How do I add packages manually?

Yes, finally working!

Thanks mcmillan, Cerebral, xdeusx, noalwin, bender02, [vEX], and kevin89 for helping.  It should be all downhill from here.

You just proved me you definitely have to >>!*read*!<< the content of that link

Do you make a habit out of being blunt?  You slap a link, just a link, to an entire guide.  And I am suppose to read that *entire* thing guess what you are trying to point me to?

What are you pointing me to?  How to add a package manually?  No, others have already corrected my mistake on that.  Where to get binaries?  No, I did not get a binary search there.  An easier way to install from sources?  No, did not find that either.  And then you reply, only to point to me to "man pacman".  How much of an ego boost did that give you?

I have read the manual.  -S was the typical switch to install a package.  So I thought tossing in a package to the cache folder would tell pacman that there is no need to fetch the package and just install it.  But I was wrong, others helped by telling me to use -U.  The Upgrade switch was used differently originally.  That easily thrown me off just like it have to another user above.

After that, I found out that the packages in Package Search were not binaries.  Others helped once again.  And finally got it to work.

But you, bangkok_manouel, just told me to go RTFM in a lesser way.  There was more to the problem than an obvious/simple solution.

I have no working connection to do it the easy way.  Yet, I remained enthusiastic on trying Arch.  Other members were helpful.  You just came crashing in.  That is no way to promote Arch.

Offline

#21 2008-02-22 18:52:25

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: How do I add packages manually?

My last post on this thread.

I have read the manual.  -S was the typical switch to install a package.

You did not. Otherwise you would have used -U as clearly stated in the pacman wiki article that I recommended you to actually help you. All your posts on this thread show you have no knowledge of how it works. That's fine, we all have to start somewhere someday. The beginners' guide is a nice, clear and well written document for people who are discovering Arch and that will answer most of your interrogations of today and tomorrow. This is valuable information. Most of my posts on this forums are answers to newcomers and sometimes in a very detailed fashion but what _you_ need is a very basic introduction to your new system as you seem not to have any idea of how you have to manage it.

And then you reply, only to point to me to "man pacman".  How much of an ego boost did that give you?

You are just paranoid and you do not want to read information that is provided to you. One (1) line below the man pacman command, there was a link to the pacman wiki article with all the information you needed. Finally, I couldn't care less about ego which is, regarding your reaction, definitely not your case.

Anyway, welcome to Arch (sincerely) and I'll be happy to help you later if I can.

Offline

#22 2008-02-22 18:54:28

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: How do I add packages manually?

arch8w wrote:

Yes, finally working!
Thanks mcmillan, Cerebral, xdeusx, noalwin, bender02, [vEX], and kevin89 for helping.  It should be all downhill from here.

Whereas I think you are trolling way too much, I think the wiki entry might be a little unclear to Arch newbies, especially to people who aren't familiar with package repositories and the whole dependencies database.

I think there should be an entry about "Managing packages" dealing with basic concepts about pacman, aur and abs in the guide; maybe, as an Arch newbie I could write some of it, to improve my English.
I think you should also cool down your posts a little bit.

Welcome to Arch.

Offline

#23 2008-02-22 18:56:15

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: How do I add packages manually?

*sigh* Drama drama drama.  No need for name calling or flying off the handle.  Everyone here was trying to help, and you got your problem solved. Yay!  Let's all stop now, shall we, and act like civilized people?

Offline

#24 2008-02-22 21:42:17

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: How do I add packages manually?

I'm going to take the liberty to lock this thread since the problem is solved and I don't see this going anywhere but downhill and in flames from here on out...

recommended reading for ya'll:
http://wiki.archlinux.org/index.php/For … OW_TO_POST (particularly the link to the 'good questions' article!)
http://wiki.archlinux.org/index.php/For … O_TROLLING
http://wiki.archlinux.org/index.php/For … L_DISPUTES
http://wiki.archlinux.org/index.php/For … THER_USERS
http://wiki.archlinux.org/index.php/For … _NOT_FLAME

Can we all get in a circle and sing kumbayah now?


The suggestion box only accepts patches.

Offline

Board footer

Powered by FluxBB