You are not logged in.
Hello there.
I want to try this but because my computer at home is out of linux (
) for the moment (till i buy a new hd) I though to post what i want to do and take some feedback.
I want to install arch on home computer and i want to download the packages for it from an internet cafe which uses windows, because i can't use the phone line at my home computer (very expensive, please trust me).
AS i have read many topics here in my understading u can not add a local repository without its package database xxx.db.tar.gz .
I want to create at my home folder three directories like those of arch ftp mirrors like :
/home/current
/home/extra
/home/testing
and copy all the appropiate downloaded packages to their respective folder alongside the appropiate databases.
for eg. jpilot-0.99.7-2.pkg.tar.gz and testing.db.tar.gz at the testing folder ( /home/testing)
or
j2re-1.4.2_05-1.pkg.tar.gz downloaded from extra branch at an arch mirror be moved at /home/extra together with extra.db.tar.gz.
Then after adding these folders on my home directory at pacman.conf would
pacman --sync -refresh
at my home computer work ? and can I install these downloaded packages from my home computer without internet (supposing i have downloade all the dependecies packages)?
Thanks and I hope i was clear in what I said.
Offline
yes
copy all files you want from a repo to a dircetory and don't forget to add the "db" file and add a line to pacman.conf then everything works just fine :-)
Offline
Or, you could just download the packages you want and their dependencies and use pacman -A and -U.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
or you can download the packes you want and place them in /var/cache/pacman/pkgs
the just do a pacman -Syu
pacman then just thinks that all the files have already been downloaded but not installed and happily installs them - works fine for me!
Offline
Except that -y will try to download the db. With no internet access that step will fail. Without the -y, pacman won't think that anything's updated.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
yeah sorry kind of missed that
Offline
thanks guyes for your replies. I am starting to think that I am smart and there is hope in me.
There is one more doubt in the method that i described in the first post that I wnat to be clarified please.
If I act like I said at the first post and there is one package that requires one dependency package, is pacman going to retrive this dependecy package from internet if it doesn't find it in the local repository?
By the way if i put the packages in /var/cache/pacman/pkgs
and do pacman -Syu
as dibblethewrecker mentioned, would pacman try to update all the packages that are already installed ?
thanks people.
Offline
yup. but you can tell it not to look to upgrade certain packages in pacman.conf. i have a huge list in mine, basically anything over 2 megs i download externally and import so i don't want pacman to try and get it over the internet. once i have dl'ed and added the packages to the local cache i then comment out that line and let it upgrade
i do misss deps sometimes which is annoying.
minor point - sorry if this is totally unfounded - it seems like you are worried pacman will dive onto the internet without your consent? it won't.
Offline