J.S.Sahambi wrote:
I have a two debian/unstable systems (let us name them PC-A and PC-B). Both have got different packages installed. PC-A is connected to internet with 2 MBps link and so there is no problem in upgrading it regularly.

PC-B is not connected to internet. So I whenever I need to upgrade the system I download the 5 CD's of sid form ftp://ftp.fsn.hu/pub/CDROM-Images/debian-unofficial/sid/ ,
burn then in RW-CDs and then upgrade the system.


I want to know is there any method by which I can download the packages requiring upgrade for the PC-B in PC-A (remember PC-A and PC-B have different list of installed packages!)?

If I can do that, I can copy the .deb files to /var/cache/apt/archives of PC-B via a portable usb-dsik and execute apt-get upgrade.

Right, as was said already if there is any way you can connect the isolated computer to the internet connected computer, you could save yourself a lot of hassle.


But if for whatever reason it must remain unconnected, then you'll want to get the .deb packages downloaded on PC-A for transfer to PC-B.

apt-get has a -d option:
apt-get -d install [package] which downloads a .deb to /var/cache/apt/archives/[package][version].deb


So to upgrade everything on PC-B:
1. Get a list of packages (to upgrade) on B, to A.
2. apt-get clean on A to clear current package cache.
3. Feed the list into "apt-get -d install [...]".
4. Burn .deb packages from apt cache onto CDs.
5. Don't forget the repository list files.

At that point I'll leave it. Really at 4 there you should figure out how to create an apt repository cdrom (similar to the Debian installation CDs). But I've never done that.

Perhaps the debian-cd package is you need for this.

dircha


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to