You are not logged in.
I am a new Archlinux user. I have tried to install Archlinux in my computer several times. To avoid additional network access, I always backup the pkg.tar.gz files from my cache folder before installing Archlinux and restore them after first boot into the new system and before running "pacman -Syu".
Last time I tried to use the ABS system to build my own packages with customized CFLAGS & CXXFLAGS. I was using srcpac to build some system packages without any problem.
However, next time when I try to reinstall my system the pacman complains about "corrupted" .pkg.tar.gz files. Because I can use "pacman -U " to install them (but not "pacman -S"), I recon the files are not corrupted and the only problem is that they are not downloaded from archlinux.org (or any other mirror sites) but compiled in the previous Archlinux system installed in the same computer.
I have tried to find out options available in the menu of pacman but I have not found any option to avoid this problem.
Here is my SUGGESTION: add an option (say "--nocheck") which ignores the integraty check of the files.
Last edited by earthengine (2009-07-26 00:51:14)
Offline
If you rebuild you packages, they will have a different checksum that the official versions so will be detected as "corrupt". The best way to handle this is to add a local repo. See http://wiki.archlinux.org/index.php/Cus … repository
Offline
Thank you for you answer! I have learn more about archlinux now...
However, I think I need more guildance...
Do you mean:
I should create a local repo and then whenever I compiled a package, I need to add the package to the repo. (I think it is not so difficual. After all the "srcpac" script is no more than 200 lines and I can easily add more actions to it.)
So, what should I do to for the new installation? How to restore the my repo in the new installation? And if I replaced some packages in "core" repo or even "base" group with some compiled packages in my local repository, which checksum will be detected first?
I am also thinking about which files should I backup from previous system - for example, pacman.conf
Offline
Why don't you use LFS (Linux from Scratch) ? : ) You would like to mix the core repo with your packages whoaa. Why is it good for you ? What's your purpose with it ?
But of course you can do that way on arch too. You can ignore packages from updating across core/extra repository, if i know well.
Offline
So, what should I do to for the new installation? How to restore the my repo in the new installation? And if I replaced some packages in "core" repo or even "base" group with some compiled packages in my local repository, which checksum will be detected first?
It depends what repo comes first in your pacman.conf. If you put your personal repo at first place (or exactly, before the official repos), pacman will use your self compiled packages and so prevent updates. You have to take care for that yourself. In the opposite case your selfmade packages will be overinstalled with next update.
If you only want to install one specific package, you can use the syntax "pacman -Sy <repo>/<package>" to install from a specific repo.
Offline
Why don't you use LFS (Linux from Scratch) ? : ) You would like to mix the core repo with your packages whoaa. Why is it good for you ? What's your purpose with it ?
But of course you can do that way on arch too. You can ignore packages from updating across core/extra repository, if i know well.
Yes, I was tried LFS before... The difficulty of LFS is its complexity - you have to do everything manually. I just thinking if I have a package management system like pacman, life might be quite easier...
Offline
So, what should I do to for the new installation? How to restore the my repo in the new installation? And if I replaced some packages in "core" repo or even "base" group with some compiled packages in my local repository, which checksum will be detected first?
It depends what repo comes first in your pacman.conf. If you put your personal repo at first place (or exactly, before the official repos), pacman will use your self compiled packages and so prevent updates. You have to take care for that yourself. In the opposite case your selfmade packages will be overinstalled with next update.
If you only want to install one specific package, you can use the syntax "pacman -Sy <repo>/<package>" to install from a specific repo.
As you can see, if I use a local repo I have to worry about the update of repos, and it is not a solution good enough.
I am not sure whether "pacman -Sy <repo>/<package>" is working or not, because when you are installing a package all the dependents has to be installed first. If the dependent packages is also customised and have another version (with SAME version number), can pacman check the same repo before checking the "core"/"extra"/"community" repos? If the answer is yes I recon this is a good solution.
Offline
Pacman will check the repos in the order in which they appear in /etc/pacman.conf. Just place your custom local repo above the others and it will check it first.
Last edited by Xyne (2009-07-26 00:51:03)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline