[arch-general] makechrootpkg -I (any way to pass --noconfirm ?)
Guys When installing packages into an archroot with the '-I' option to makechrootpkg is there any way to also pass the '--noconfirm' option to pacman? I have tried a couple of different ways to pass it after the -I option, but so far it is a no go. I'm trying to automate the trinity build in an archroot, but having to confirm each install after the module build is preventing this. What say the experts? -- David C. Rankin, J.D.,P.E.
On 06/15/2011 02:41 PM, David C. Rankin wrote:
Guys
When installing packages into an archroot with the '-I' option to makechrootpkg is there any way to also pass the '--noconfirm' option to pacman? I have tried a couple of different ways to pass it after the -I option, but so far it is a no go. I'm trying to automate the trinity build in an archroot, but having to confirm each install after the module build is preventing this. What say the experts?
You're doing this incorrectly. Setup a repo that is reachable in the chroot then ( sudo /usr/sbin/mkarchroot -u ${_chroot}/root 2>&1 | tee ${_date}build.log && exit ${PIPESTATUS} ) ( sudo /usr/sbin/makechrootpkg -c -r ${_chroot} 2>&1 | tee -a ${_date}build.log && exit ${PIPESTATUS} ) The first mkarchroot updates the chroot system and the second builds the package, when they are are built you are ready to install to the host system. I do not recommend installing the trinity packages to the chroot, the PKGBUILD file should pull them in automagically if it is written correctly. See my automated trinity build system for pointers. I wrap the whole thing in a Makefile which builds the entire trinity desktop ( if needed ). $ make trinity is all that is then needed.
Hello... I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http. Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them??? Thanks
2011/6/15 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>:
Hello...
I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http.
Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them???
Thanks
Please see [1] I don't know if you noticed that you received that reply, please don't ask again in other threads, ask if you didn't understand something from the documentation [1] https://wiki.archlinux.org/index.php/Local_repository_HOW-TO -- Angel Velásquez angvp @ irc.freenode.net Arch Linux Developer / Trusted User Linux Counter: #359909 http://www.angvp.com
2011/6/16 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
Hello...
I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http.
Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them???
Thanks
You can use repo-add and repo-remove commands to modify pacman-repo-dbs then just add the server to pacman.conf [myrepo] Server = http://myserver.fi/arch/repo you want to put that over the other entries if you build packages that are also found from core/extra/community so that the get fech from there instead from the offical repos. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
2011/6/16 jesse jaara <jesse.jaara@gmail.com>
2011/6/16 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
Hello...
I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http.
Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them???
Thanks
You can use repo-add and repo-remove commands to modify pacman-repo-dbs then just add the server to pacman.conf
[myrepo] Server = http://myserver.fi/arch/repo
you want to put that over the other entries if you build packages that are also found from core/extra/community so that the get fech from there instead from the offical repos. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
Oh and I used to maintain a customrepo in the past and created 2 scripts to help in it. Use them if you like they are normal bash functions. They require package 'bash-xyne-common_functions' from aur/xyne's-repo ##This push the changes from the local copy of the repo to net. jrepo-sync () { lftp -c "set ftp:list-options -a; open ftp://username:password@myserver.fi; lcd /path/to/my-repo; cd /repo/path/on/ftp/server; mirror --reverse --delete --verbose" } ###This adds the package to the custom repo and removes old versions ###if they exist. jrepo-add () { for pkg in $@; do cp "`pwd`/$pkg" "/srv/ftp/jrepo/" repo-add "/srv/ftp/jrepo/jrepo.db" "/srv/ftp/jrepo/$pkg" extensionless=`strip_pkg_ext $pkg` name=`get_package_name $extensionless` toremove=`ls "/srv/ftp/jrepo" | grep -v "$pkg" | grep "$name"` for i in $toremove; do extensionless=`strip_pkg_ext $i` if [ `get_package_name $extensionless` = $name ]; then echo "Removing old version(s) of $name from repository" echo $i rm "/srv/ftp/jrepo/$i" fi done done } -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
On 06/15/2011 04:18 PM, Baho Utot wrote:
On 06/15/2011 02:41 PM, David C. Rankin wrote:
Guys
When installing packages into an archroot with the '-I' option to makechrootpkg is there any way to also pass the '--noconfirm' option to pacman? I have tried a couple of different ways to pass it after the -I option, but so far it is a no go. I'm trying to automate the trinity build in an archroot, but having to confirm each install after the module build is preventing this. What say the experts?
You're doing this incorrectly. Setup a repo that is reachable in the chroot then
( sudo /usr/sbin/mkarchroot -u ${_chroot}/root 2>&1 | tee ${_date}build.log && exit ${PIPESTATUS} ) ( sudo /usr/sbin/makechrootpkg -c -r ${_chroot} 2>&1 | tee -a ${_date}build.log && exit ${PIPESTATUS} )
The first mkarchroot updates the chroot system and the second builds the package, when they are are built you are ready to install to the host system. I do not recommend installing the trinity packages to the chroot, the PKGBUILD file should pull them in automagically if it is written correctly.
See my automated trinity build system for pointers. I wrap the whole thing in a Makefile which builds the entire trinity desktop ( if needed ). $ make trinity is all that is then needed.
Thank you Baho! -- David C. Rankin, J.D.,P.E.
Em Qui, 2011-06-16 às 00:38 +0300, jesse jaara escreveu:
You can use repo-add and repo-remove commands to modify pacman-repo-dbs then just add the server to pacman.conf
[myrepo] Server = http://myserver.fi/arch/repo
you want to put that over the other entries if you build packages that are also found from core/extra/community so that the get fech from there instead from the offical repos.
Ok thanks for the help, will test this weekend...
Em Qua, 2011-06-15 às 18:37 -0300, Ángel Velásquez escreveu:
2011/6/15 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>:
Hello...
I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http.
Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them???
Thanks
Please see [1] I don't know if you noticed that you received that reply, please don't ask again in other threads, ask if you didn't understand something from the documentation
[1] https://wiki.archlinux.org/index.php/Local_repository_HOW-TO
I read the document, it explains how to mount a repo using nfs on local servers, that is not I want to I need to build a repo using http, on remote servers, and use the command pacman -Syu to update all the archlinux... for what I see, I need to go to the pacman source and see how it is done... I use FreeBSD, and in BSD it is all documented, in every detail, I am having some dificulties using linux Even if arch linux is the best one, the documentation is missing from some points... for example: how pacman chooses what needs to be updated from the repo sources... If the solution is to go to the pacman source, no problem... I just asked the list in the case someone has done it before... Sergio
2011/6/15 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>:
Em Qua, 2011-06-15 às 18:37 -0300, Ángel Velásquez escreveu:
2011/6/15 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>:
Hello...
I am building a private repository (myrep) I put all the packages, I build using PKGBUILD and /var/abs/tree. and saved it on an internet server that can be acessed by using http.
Is there a way to build the db and files in the repository, in a way pacman -Syu can update my archlinux??? or pacman just do not use them???
Thanks
Please see [1] I don't know if you noticed that you received that reply, please don't ask again in other threads, ask if you didn't understand something from the documentation
[1] https://wiki.archlinux.org/index.php/Local_repository_HOW-TO
I read the document, it explains how to mount a repo using nfs on local servers, that is not I want to I need to build a repo using http, on remote servers, and use the command pacman -Syu to update all the archlinux...
So you need an http server (common sense is also valid)
for what I see, I need to go to the pacman source and see how it is done...
Or try to explore yourself how to do it.
I use FreeBSD,
I really doubt about it. and in BSD it is all documented, in every detail, I am
having some dificulties using linux Even if arch linux is the best one, the documentation is missing from some points... for example: how pacman chooses what needs to be updated from the repo sources...
That's explained, even on pacman.conf ..
If the solution is to go to the pacman source, no problem... I just asked the list in the case someone has done it before...
The solution is to read a lot, you still missing some valuable information.
Sergio
-- Angel Velásquez angvp @ irc.freenode.net Arch Linux Developer / Trusted User Linux Counter: #359909 http://www.angvp.com
participants (5)
-
Baho Utot
-
David C. Rankin
-
jesse jaara
-
Sergio de Almeida Lenzi
-
Ángel Velásquez