You are not logged in.
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
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
No.
And copying the package into the chroot folder yields the same error.
Last edited by idomeneo (2016-10-12 23:56:24)
Offline
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