VectorLinux
October 25, 2014, 01:38:18 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Package transfer between machines  (Read 1568 times)
pastorblue
Member
*
Posts: 3


« on: June 14, 2009, 11:54:03 pm »

I am a Linux newbie  at a school in Zambia. We have recently put Ubuntu on our desktop machines but I purchased a copy of VL 6 De Luxe and it proved by far the best for some older laptops we had donated to us. Here's my problem - we can update one Ubuntu machine and then transfer all the update files to the other machines quite easily. We have to do that because Internet access here is very slow and expensive. On VL I want to put all the additional packages and updates onto a CD (or USB memory) and transfer to other machines. I have found the packages (/home/ftp etc etc) but the packages folder contains lots of hidden files which always refuse to copy over, even as root and with cp -f command. Do I need those hidden files, and if so, how do I copy them? Any help appreciated.

Pastorblue
Logged
kc1di
Packager
Vectorian
****
Posts: 1125


Morse Code Early digital mode. John 3:16


« Reply #1 on: June 15, 2009, 02:06:25 am »

I am a Linux newbie  at a school in Zambia. We have recently put Ubuntu on our desktop machines but I purchased a copy of VL 6 De Luxe and it proved by far the best for some older laptops we had donated to us. Here's my problem - we can update one Ubuntu machine and then transfer all the update files to the other machines quite easily. We have to do that because Internet access here is very slow and expensive. On VL I want to put all the additional packages and updates onto a CD (or USB memory) and transfer to other machines. I have found the packages (/home/ftp etc etc) but the packages folder contains lots of hidden files which always refuse to copy over, even as root and with cp -f command. Do I need those hidden files, and if so, how do I copy them? Any help appreciated.

Pastorblue

Greeting Pastorblue,
Welcome to Vector Linux.
I may not quite understand what you are trying to do. But you can not easily use Ubuntu files on a Vector linux machine. so transferring those ubuntu programs will not work on Vector linux laptops. If it is just a matter of text files and such that would be no big problem.  You will be better off installing either Ubuntu or Vector on all the machine. IMHO. Ubuntu uses a different packaging system that Vector so the packages are not directly compatible, that's not to say you can't convert them but then you may run into dependency problems.

Hope this helps let us know how it's going and we'll try to give you all the help we can.

Dave
 

Logged

Dave
( Living Somewhere in Maine USA)
Registered Linux User #462608
kidd
Packager
Vectorian
****
Posts: 682


« Reply #2 on: June 15, 2009, 02:54:06 am »

Welcome to VL pastorblue.

@kc1di:  I think he wants to download vectorlinux packages once, and transfer them to other vl computers, without having to download again from internet.

Unfortunately, I don't know how to do it Sad . I'd try to cp -r /home/ftp to another computer, and try to slapt-get a given package, maybe, slapt-get will reuse the packages in /home/ftp.

If a package has no dependencies, you can just installpkg /path/to/name_of_package.tlz , and it will install.   If it has dependencies, you should install them manually too (a bit tedious).

We'll have to wait for more experienced vl users to come with a safe solution...

Cya
Logged

nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #3 on: June 15, 2009, 04:22:59 am »

Good thinking, using one machine to download updates and re-using the cached files.

I have not tried this approach, but as far as the copy operation, I just tried copying the whole /home/ftp directory on my machine. Using the root account and Midnight Commander (mc), everything copied over, including hidden files.
Logged
kc1di
Packager
Vectorian
****
Posts: 1125


Morse Code Early digital mode. John 3:16


« Reply #4 on: June 15, 2009, 04:53:33 am »

Welcome to VL pastorblue.

@kc1di:  I think he wants to download vectorlinux packages once, and transfer them to other vl computers, without having to download again from internet.



I Hadn't thought of that thanks for the clearing that up kidd.
Dave  Smiley
Logged

Dave
( Living Somewhere in Maine USA)
Registered Linux User #462608
pastorblue
Member
*
Posts: 3


« Reply #5 on: June 15, 2009, 05:44:38 am »

Welcome to VL pastorblue.

@kc1di:  I think he wants to download vectorlinux packages once, and transfer them to other vl computers, without having to download again from internet.

Thanks kidd, you have it right. It's really good to have all this help so quickly, I appreciate it. Smiley
Logged
StrayBit
Vectorite
***
Posts: 373



« Reply #6 on: June 15, 2009, 08:09:25 am »

I just updated my system and noticed that gslapt has a box to download only.  Perhaps this might help?
Logged

Dell GX280: [7.0-Gold-Final], 6.0-Gold-Final, 5.9-Gold
HP 670 Win7 & VL7.0
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #7 on: June 15, 2009, 08:17:29 am »

you can make a repo on a cd
you just need to download a copy of the 2 repo scripts and run them in a folder with the packages then copy all the contents onto the cd.

the repo scripts are here http://ftp://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-6.0/packages/makeinfo-slack
http://ftp://ftp-osl.osuosl.org/pub/vectorlinux/veclinux-6.0/packages/makeinfo-slapt

then you have to add a line like this:
SOURCE=file:///mnt/cdrom/
to your /etc/slapt-get/slapt-getrc
Logged
pastorblue
Member
*
Posts: 3


« Reply #8 on: June 15, 2009, 09:06:41 pm »

you can make a repo on a cd

Thank you for this suggestion, I will try it. Just to update, I tried the midnight commander suggestion and it didn't work for me - copies everything except the hidden files, which fail with an 'Invalid Argument' - exactly what happens with the cp command in terminal. Sorry to be slow getting back here when all you kind folks have contributed, but we not only have very slow internet in Zambia but also intermittent electricity supply, so a 7 hour cut last evening stopped everything Smiley

By the way, the method I do this same thing on Ubuntu is copy the two .bin files from /var/cache/apt and the entire contents of /var/cache/apt/archives from one machine to another, run apt-get update and any apt-get install x then draws on the copied files. This doesn't work in VL so far (obviously with slapt-get and the appropriate directories substituted).

Thank you again though - this is a really helpful community.
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #9 on: June 16, 2009, 04:02:11 am »

fail with an 'Invalid Argument'

I would suspect a file system problem. Either a file is unreadable, or can not be written to the target. I would troubleshoot by first trying to copy the files to somewhere else locally, say /tmp. If that fails, I would start looking inside the files in question (using mc and F4), to see if they will open. You may end up deleting and starting over.

Another possibility is a problem with the target. Is it FAT or linux formatted?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!