VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: How to build mirror  (Read 1109 times)

yaoasm

  • Member
  • *
  • Posts: 9
  • user
How to build mirror
« on: May 08, 2017, 05:27:49 am »

How to build mirror in local area network :)?
Logged

roarde

  • Vectorian
  • ****
  • Posts: 766
  • it's enough
Re: How to build mirror
« Reply #1 on: May 08, 2017, 06:05:38 am »

A mirror of what, if you please?

Alternatively, select all the pictures of mountains.  Press verify when there are none left.
« Last Edit: May 08, 2017, 06:10:36 am by roarde »
Logged
Robert

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4443
Re: How to build mirror
« Reply #2 on: May 08, 2017, 12:40:59 pm »

Alternatively, select all the pictures of mountains.  Press verify when there are none left.

 ;D
Logged

yaoasm

  • Member
  • *
  • Posts: 9
  • user
Re: How to build mirror
« Reply #3 on: May 09, 2017, 01:51:32 am »

How to build packages mirror´╝î like ftp://*.org/pub/vectorlinux/veclinux-7.1/, in  local area network
Logged

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4443
Re: How to build mirror
« Reply #4 on: May 09, 2017, 12:21:04 pm »

Thank you for clarifying, yaoasm.

Creating a local web/ftp server for using on your LAN would have to start with server setup and configuration, which is beyond the scope of VL as a desktop distro.

I'll outline the steps I used to create a repository on a local disk for VL 7.2. You would need to modify the values according to your version of VL, and local paths.

As root, create a directory and download all files from the source to your local disk:
Code: [Select]
mkdir /mnt/hd/vl72
cd /mnt/hd/vl72
wget -r -np http://vlcore.vectorlinux.com/pkg/untested/veclinux-7.2/x86/

Next, open up gslapt and click Edit > Preferences > Sources > Add
Enter text:
Code: [Select]
file:///mnt/hd/vl72/vlcore.vectorlinux.com/pkg/untested/veclinux-7.2/x86/Click OK, and back out, clicking "Yes" when it offers to update the package list.

The whole repo for 7.2 is 4.6G, so it took a while to download.

=======================================
Another (laborious) trick would be to use Gslapt and click all the boxes for the packages you want to download, select "Install" to mark. When you have all the desired boxes marked with a little arrow symbol, click the "Execute" button, then tick the box for "Download packages only" and clicking "OK". This would copy those packages to your local working directory.

Third option: get hacking! Download the repo to gslapt's "working directory", or change the "working directory" to the location where you downloaded the files!  8)
Logged

roarde

  • Vectorian
  • ****
  • Posts: 766
  • it's enough
Re: How to build mirror
« Reply #5 on: May 09, 2017, 04:57:10 pm »

I think the idea may be to have all the nodes share the same physical WORKINGDIR, so that packages only have to be downloaded by one node, rather than by all.

@yaoasm:
Do you want to get all of the packages in the public repo, or just have your local machines share the ones they download?
Logged
Robert

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2383
Re: How to build mirror
« Reply #6 on: May 11, 2017, 12:04:48 pm »

Consider using `webfs` as http server for sharing packages in a lan. It is a small and powerful package implementing an HTTP daemon which can be ran from the command line with no complicated configuration files.
Logged
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

yaoasm

  • Member
  • *
  • Posts: 9
  • user
Re: How to build mirror
« Reply #7 on: May 13, 2017, 01:46:12 am »

Thank you very much for your detailed explanation ;)
Logged