LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 08-24-2014, 10:05 PM   #1
badsector
Member
 
Registered: Aug 2014
Distribution: Suse, Slackware, Mageia, Debian
Posts: 39

Rep: Reputation: 0
Mageia local repo tree from periodic rsynced downloads


I want to use rsync to download to local copy the distro tree and periodically update the update tree. With several installations I would then like to set the local tree up in Software-Manager as one of the sources. I've been using this method with Suse and pointing the package handler Yast to "Local Plain rpm Directories", not the same as _createrepo_

How can I do all this and give the Software-Manager a single local parent directory for all locally available packages?
 
Old 08-25-2014, 03:36 AM   #2
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
This page has an example of a script to create a local mirror:
https://wiki.mageia.org/en/Mageia_Mirror_script_example

Personally I just use a simple script with a single rsync command for each distribution that I want to mirror, such as:

Code:
/usr/bin/rsync -vaHS --delete-after --exclude "debug*/" --exclude "SRPMS/" rsync://mirrors.kernel.org/mirrors/mageia/distrib/cauldron/ /mirror/Mageia/distrib/cauldron/
and set it up to run daily using
Code:
crontab -e
Once you have set up your local mirror, to use it as the software source, configure a custom source using drakrpm-edit-media:
http://doc.mageia.org/mcc/4/en/conte...dit-media.html

or use
Code:
urpmi.addmedia --distrib file://
as root - the man page gives examples.

Jim

Last edited by jkerr82508; 08-25-2014 at 03:55 AM.
 
1 members found this post helpful.
Old 08-25-2014, 07:51 AM   #3
badsector
Member
 
Registered: Aug 2014
Distribution: Suse, Slackware, Mageia, Debian
Posts: 39

Original Poster
Rep: Reputation: 0
Thanks a meg, that's what I call a response!

What I have been doing is just selected directories one-by-one in a single script which I run when the urge hits me and subsequently use the partial local tree via the gui package-manager (Yast for Suse) on the same basis. For this what I really need is the list of available directories from which to select and the way to point the package-manager to the local ones. Yours is a much more complete solution, sure is nice to have & thanks again.

sample from my script:
echo "START ftp5.gwdg.de:ub/opensuse/update/13.1/i586/ /0/sa14/comp/fix-os131/updt/suse/i586"
rsync -vidhut --bwlimit=800 --progress \
--exclude-from=/0/sa14/comp/fix-os131/excl.txt \
--delete-excluded \
--delete-after \
ftp5.gwdg.de:ub/opensuse/update/13.1/i586/ /0/sa14/comp/fix-os131/updt/suse/i586
echo " ";echo " ";echo " ";echo " ";echo " ";
 
Old 08-25-2014, 10:07 AM   #4
badsector
Member
 
Registered: Aug 2014
Distribution: Suse, Slackware, Mageia, Debian
Posts: 39

Original Poster
Rep: Reputation: 0
I just went and took a look at those sites but I don't see any with actual rpm's. The whole mirror would be over 700gb which is not what I'm loking for at all and I don't see an easy way to filter down to just what I want. I know this is not a Suse thread but as an example my entire suse-13.1 local repo with distro as well updates is currently at only 41.2gb of the total available. What I was hoping for was an ftp tree that more or less duplicates the package-manager repo checkboxes and which I could rsync from time to time with such directory or rpm excludes as desired.
 
Old 08-25-2014, 12:21 PM   #5
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
Quote:
Originally Posted by badsector View Post
I just went and took a look at those sites but I don't see any with actual rpm's.
You apparently didn't look very carefully.

This page explains the layout of a Mageia mirror:
https://wiki.mageia.org/en/Mirrors_p...vailable_media

My (partial) mirror for cauldron is about 41GB for each of x86_64 and i586. For a normal x86_64 installation it is useful to have both, if you plan on using things like skype that are only 32bit.

Jim
 
Old 08-25-2014, 01:35 PM   #6
badsector
Member
 
Registered: Aug 2014
Distribution: Suse, Slackware, Mageia, Debian
Posts: 39

Original Poster
Rep: Reputation: 0
I stand corrected, I had looked everywhere except in the media folders :-(

My own rsync is running already

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
local repo srinivasmmdl Linux - Newbie 2 10-07-2011 09:00 AM
local repo pravlin Debian 2 07-23-2009 08:22 AM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
local apt repo anantshri Linux - Software 1 01-02-2006 06:33 AM
I need a local rpm repo a13x Linux - Networking 4 12-16-2004 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration