Quote:
Originally posted by damienduff
wat if i wana copy /var/cache/apt/archives into another debian machine?
as root
dpkg --install /folder/*.deb ?
|
the way i got this working in my network is by making one a designated server (in my case, my web server). I use a SCSI drive for my apt at /mnt/apt and have a symbolic link at /var/cache/apt . Then i export the drive to my other computer with the following code in /etc/exports:
Code:
/mnt/apt 192.168.2.*(insecure,no_root_squash,sync,rw)
So then i create a /mnt/apt folder on my clients and link it to /var/cache/apt as in my server. The with the command:
Code:
mount -t nfs 192.168.2.13:/mnt/apt /mnt/apt
i can mount it on my client. So all i have to do is edit the fstab and on boot up (as long as the server is up) i can connect to it. This way if i download a new file on one computer i can get it on all, without having the same install on all (my server, has no X, only has apache and nfs basically).
There might be a better way, but i've gotten around to using this and it works pretty damn well :P.
EDIT: btw just restart nfs, mount it and do an update and you will be able to use the programs there.
The only flaw or problem with this setup is that two computers cant be updating at the same time (it locks it) and the server must be up 24/7 which isnt a problem for me.