You are not logged in.

#1 2016-10-12 23:49:18

idomeneo
Member
Registered: 2013-07-19
Posts: 25

How to install/upgrade a package into a chroot environment.

I'm trying to install a self-made package into a chroot environment, as a dependency for another package.
How do I do this?

# arch-nspawn $CHROOT/root pacman -U /path/to/package

yields

error: '/path/to/package': could not find or read package

Offline

#2 2016-10-12 23:51:20

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: How to install/upgrade a package into a chroot environment.

Are you really typing "/path/to/package" ?


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#3 2016-10-12 23:53:48

idomeneo
Member
Registered: 2013-07-19
Posts: 25

Re: How to install/upgrade a package into a chroot environment.

No.

And copying the package into the chroot folder yields the same error.

Last edited by idomeneo (2016-10-12 23:56:24)

Offline

#4 2016-10-13 03:05:29

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: How to install/upgrade a package into a chroot environment.

Um, the `pacman -U /path/to/package` is run from within the nspawn container, you do realize that? So that assumes you actually have a package file you wish to install which is at /path/to/package inside the container.

If you did indeed finally copy the package into the chroot folder, then you should not be getting that error message...

...

Of course, you may wish to simply use makechrootpkg's "-I <pkg>" flag to "Install a package into the working copy of the chroot". Why reinvent the wheel?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB