You are not logged in.

#1 2010-12-03 21:35:48

unilx
Member
From: Fredericton,Canada
Registered: 2009-10-01
Posts: 183

Install packages + dependices

When im installing packages from /var/cache/pacman/pkg do i have to install all the dependices individually or is there an option i can use to install a package with all the dependices.THX

Offline

#2 2010-12-03 21:38:07

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Install packages + dependices

http://projects.archlinux.org/pacman.git/plain/NEWS?id=HEAD wrote:

Installing packages with -U can handle installing
dependencies, conflict resolution and replacing packages

Offline

#3 2010-12-03 22:27:02

unilx
Member
From: Fredericton,Canada
Registered: 2009-10-01
Posts: 183

Re: Install packages + dependices

I've tried using pacman -U and i get an error :

check dependices
error:failed to check transaction(could not satisfy dependices)

I have all the the required dependices but it still wouldn't work.I had no problem installing the packages individuallyso im not sure whta the problem is.I'll be installing xorg soon and i would rather install it from /var/cache/pacman/pkg instead of having to re-download it

Offline

#4 2010-12-03 22:49:12

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

Re: Install packages + dependices

Maybe the packages you have in your cache are old and pacman downloads the new versions.

It may happen with come old packages: some dependencies are no longer in the repos etc. What packages exactly gave you those errors?
xorg got some new dependencies some time ago (package unbundling) http://mailman.archlinux.org/pipermail/ … 18235.html

Last edited by karol (2010-12-03 22:56:03)

Offline

#5 2010-12-04 00:11:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install packages + dependices

pacman man page wrote:

-U, --upgrade
    Upgrade or add package(s) to the system and install the required dependencies from sync repos.

The pacman cache is not a sync repo.

Offline

#6 2010-12-04 00:16:43

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

Re: Install packages + dependices

tomk wrote:
pacman man page wrote:

-U, --upgrade
    Upgrade or add package(s) to the system and install the required dependencies from sync repos.

The pacman cache is not a sync repo.

https://wiki.archlinux.org/index.php/In … repository ;P

Offline

#7 2010-12-04 00:34:38

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Install packages + dependices

unilx wrote:

I've tried using pacman -U and i get an error :

check dependices
error:failed to check transaction(could not satisfy dependices)

I have all the the required dependices but it still wouldn't work.I had no problem installing the packages individuallyso im not sure whta the problem is.I'll be installing xorg soon and i would rather install it from /var/cache/pacman/pkg instead of having to re-download it

Please paste the whole command and it's entire output, otherwise we have no idea what you're doing.

Offline

#8 2010-12-04 00:37:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Install packages + dependices

"pacman -Us <packagefile>" will make pacman try to install deps from the repos.

Offline

#9 2010-12-04 01:47:36

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Install packages + dependices

Allan wrote:

"pacman -Us <packagefile>" will make pacman try to install deps from the repos.

I think you might be confusing pacman with makepkg.

# pacman -Us /var/cache/pacman/pkg/kernel26*
error: invalid option

Offline

#10 2010-12-04 01:52:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Install packages + dependices

Argh... crap... you are right.  pacman does it automatically if deps are available in the repos tongue

Offline

#11 2010-12-04 09:10:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Install packages + dependices

uniix, in case the above rambling is unclear to you: if you wish to install packages and their dependencies from your pacman cache using pacman -U, you need to make the cache into a repo using repo-add, and then add that repo to your pacman.conf.

Offline

#12 2010-12-05 15:56:40

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Install packages + dependices

Ok, now i'm confused.

If I pacman -U a package that requires (uninstalled) foo and bar from, say, [core] and [extra].  Will the new pacman behavior not add those targets?

If if those (uninstalled) package-versions also happen to still be in my cache, won't pacman use the cached packages rather than re-downloading?

And isn't that what's desired here?

Offline

#13 2010-12-05 16:02:40

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Install packages + dependices

As of pacman 3.4, -U is handled much like -S and will pull in necessary dependencies. To test:

# pacman -Sdw couchdb
< stuff happens >
#  pacman -U /var/cache/pacman/pkg/couchdb-1.0.1-2-i686.pkg.tar.xz 
resolving dependencies...
looking for inter-conflicts...

Targets (3): erlang-R14B-1  spidermonkey-1.7.0-3  couchdb-1.0.1-2

Total Download Size:    36.52 MB
Total Installed Size:   125.93 MB

Proceed with installation? [Y/n] 

If you were to cancel out of this operation after the download but before the install and repeat, it'll happily pull in the cached packages.

Offline

#14 2010-12-05 16:15:51

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Install packages + dependices

Good, so all the OP should have to do is -U his cached package.  Unless he actually wants a not-found error rather that pulling non-cached deps from actual repos...

I still think something else is going on causing irresolvable deps.  Won't know till he answered #7.

Offline

Board footer

Powered by FluxBB