CentOS 5 :: How To Create A Local Mirror
Aug 22, 2011
I am trying to create a local mirror/repository for CentOS 5.6 for updates and network installs. I have read the page here on the site about how to do it over and over again, and I still can't figure it out. I have already created the directory, but right after that, I can't go any further. I know this is much easier than I probably think it is. Would someone mind telling me, (in beginners terms) on how to do this? I just want the 'os' package and nothing else.
View 1 Replies
ADVERTISEMENT
Jul 29, 2009
I'm new here and hope to profit from your immense linux knowledge and of course to share my own experience where I can.
I'm in a student organization and we use a file server that runs linux. I can log in through ssh and copy using scp using login and password (no rsa/dsa keys because most users are windows users using winSCP and they're lacking in computer knowledge so we don't require them to mess around with keys)
However, I don't have network access everywhere, so I'd like to make a copy on my laptop harddisk of some of the folders I use most frequently. Note that I don't need it to copy files from my pc back to the remote server so I don't need two-way sync. Deleting the local copy every time and downloading a new full copy is not an option as we are talking about several gigabytes and the download speed is limited. Normally I would use Unison, however, this requires unison to be installed on both pc's and I can't install any software on the file server so this is not an option.
Any ideas on how to achieve this? I'm reasonable knowledgable about linux so I don't mind tinkering with some config files and using command line applications.
View 1 Replies
View Related
Feb 10, 2010
I know there has to be an easier way to do this than to download each file individually. On an ftp site I would just use
PHP Code...
But with those files being on an HTTP server and wget not supporting HTTP file globbing I'm at a loss.
What is a one step method to recursively download all files in a directory on an HTTP server?
View 5 Replies
View Related
Nov 6, 2009
I created a local mirror with a DVD Image, is there a way to get this mirror to 5.4 now?I already updated the updates/extras repo, but now my main-repo is outdated and my updates go wrong.my directorystructure looks like this:
/server/rpmrepo/centos/5]
# ls
centosplus extras os updates
and the os folder:[code].....
View 3 Replies
View Related
Jan 9, 2010
I'm using f12. My university has recently become a mirror for fedora packages. But i'm facing a trivial problem. I have set proxy for yum so that the packages that are not available on local mirror can be downloaded from other mirrors. But then i don't know how to set no proxy for my local server. Consequently it is not using my local mirror at all. Tell me how to set no proxy for the local mirror. I want my local mirror because it's damn fast. My proxy settings are like this (they go in /etc/yum.conf):
[code]....
View 2 Replies
View Related
Jan 11, 2010
I've just set up the local mirror for my 96 CentOS 5 workstations. The mirroring script is taken from public-mirror howto and looks like this:
#!/bin/sh
rsync="/usr/bin/rsync -avHzL --delete --delay-updates" # replaced -q with -v for debuging purposes, removed --bwlimit, added -L to follow symlinks
mirror=centos.politechnika.lublin.pl::CentOS # tried several different same result
[Code]....
I tested mirror consistency by putting the mirror addres I'm syncing with, directly into repo file. Than yumex works fine. I tried several different mirrors with the same result.
View 3 Replies
View Related
Aug 4, 2011
I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir
Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)
View 2 Replies
View Related
Aug 16, 2010
I'm in the process of creating local repos for our company servers (CentOS 5.5) and laptops (Fedora 13). And while the CentOS part went perfect the Fedora part is causing major trouble.But first things first, here's the setup: a central CentOS 5.5 server is running Apache2 and has a VirtualHost listening on Port 8080 for both CentOS and Fedora. The DocumentRoot for this VirtualHost is /data/repo wherein two directories, centos and fedora, reside.
This is the .repo-file for CentOS that works like a charm:
Quote:[local]
name=CentOS-$releasever - local packages for $basearch
[code]...
View 5 Replies
View Related
Dec 29, 2008
I have fresh CentOS 5.2 installed to 2 sata hdd 1.5 TB size; on every of that hdd is primary raid1 submirror of /boot made with md during install. All other space is lvm place, on lvm living root and swap partitions. And it's work. Now I want to mirror my root and swap, and add other volumes with different raid requirements (raid0 and raid1).
# lvcreate -L10G -m1 -n mir vg0 Insufficient suitable allocatable extents for logical volume : 320 more required Unable to allocate extents for mirror(s).
View 2 Replies
View Related
Jan 30, 2009
I have been looking into setting up a local repository for updates etc as we have an increasing number of fedora clients/servers. Searching the web I found multiple how-to's on how to accomplish this little project. One thing that bothers me is that each how-to seems to refer to a "static URL" mirror for rsync to get the rpms.
View 1 Replies
View Related
May 17, 2010
After digging around trying to figure out how to upgrade my local apt-mirror to 10.04, I figured I would share it here so anyone else who does this, can do it with ease. It requires a few steps, and editing a couple files, but the process is relatively painless.This assumes you have an apt-mirror already running on your server. Also it assumes you're using /var/www/ubuntu as your root where all your packages are stored.
The first step is to visit http://changelogs.ubuntu.com and download the meta-release packages. Create a new directory, /var/www/ubuntu/upgrade, and drop the files there.On the client's end, a single file needs to be edited, /etc/update-manager/meta-release. Change the URI's in that file to the URI of your apt-mirror and run your update manager. Your upgrade will start, only asking if you want to change your paths in your sources.list. Agree to it, and the packages will download and configure.
View 2 Replies
View Related
Aug 3, 2009
As the title says I'm trying to build myself a local RPM mirror. I have multiple laptops and a desktop that use Fedora 11. So I used 'rsync' to setup and sync my directories. I next went on to create my repo with the 'createrepo' function. I run my server backend as FreeBSD so I moved my data over there and setup my 'lighttpd' service.
Everything went fine until I used 'rsync' and synced up my data. Am I supposed to run 'createrepo' after each sync? If so, does anyone else use the same kinda setup, even if not FreeBSD, but a different os other than linux for their server that they run this from? I've been dealing with this for 2 weeks now and finally gave up researching and testing and thought. Not something I'm good at doing. Check my register date and my first post date.
Edit: FreeBSD doesn't have a port or unofficial port for this. I noticed it seems to be written as a python script so thought I could somehow get it to run on FreeBSD with linux emulation.
View 7 Replies
View Related
Aug 27, 2010
I have a remote drive mounted on my system(ubuntu 10.04 x64), and i have the contents of that drive backed up to dropbox. the problem is, if i unmount the drive, the files disappear from dropbox. is there a way to mirror the contents of the network drive to a localfolder(preferably in such a way that all changes and file deletions are changed on the local folder instantly, but unmounting doesn't delete it all)? It looks like rsync would work, but im not sure how to make it work.
View 2 Replies
View Related
Apr 17, 2010
Release upgrade ends up with error:
"Error during update. A problem occurred during the update. This is usually some sort of network problem, please check your network connection and retry. The server may be overloaded. Restoring original system state".
When doing do-release-upgrade -d to upgrade from karmik to lucid. I using local mirror ftp://ubuntu.snacho.ru (also have http that works but not browseable). When I change lines in /etc/apt/sources.list from local mirror to official [URL] all works fine. I don't want to download 1Gb from internet (because of traffic cost). What is wrong with local mirror ? I can communicate with its owner, but what he needs to change on the mirror ?
View 1 Replies
View Related
Jan 30, 2010
I am thinking about setting up a local Debian Repository mirror. I want it to mirror just the Debian Repo at [URL].. Anyone have any idea how much disk space I might need to do it?
View 3 Replies
View Related
Jun 13, 2011
At the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.
View 8 Replies
View Related
Feb 7, 2011
I would like to create a directory public_html/archive that is a mirror of public_html/images, except that deletions in the images directory don't cause corresponding deletions in archive.
I was going to manage all of this in code, but then I figured, maybe the system can handle it for me in a robust way.
Note that the website will reference archive in real time, so it has to be an instant mirror and not something done nightly, etc.
View 2 Replies
View Related
Apr 24, 2011
I want to setup a FAI server for which I was looking for the best method of mirroring the Debian Lenny. I want to setup a local mirror with the best method available for mirroring. If it is ftpsync, please provide me some best ways of doing it. I tried ftpsync mirroring but that was not getting properly working due to insufficient I want this mirror to be accessible in my FAI setup so that I can start the installation on multiple machines and start the updates and package installation to be done from the same local mirror.
View 1 Replies
View Related
Jul 1, 2011
i want install goldendict and source downloaded and i want compile it. for compile i need this packages :
Building under Linux: Make sure you have those dependency packages installed: libvorbis-dev, zlib1g-dev, libhunspell-dev, x11proto-record-dev, qt4-qmake, libqt4-dev, g++, libxtst-dev, libphonon-dev. They can be named slightly different in different distributions
View 5 Replies
View Related
Sep 10, 2010
I have done several attempts to build a local mirror of Salckware 13.0. There are two problems: I have to wait very long for a connection, they appear error during a connection which broke it so I have to restart. Is there any other way to build mirror? I am using Alien Bob scripts. Never before happened something like that. The connections with common web pages (google, etc) work well. Maybe I should look for some other mirror than those listed in mirror-slackware-current.sh.
[code]....
View 8 Replies
View Related
Jun 26, 2009
I have a server, running Centos 5 and it is working fine. Now I want to have another server (server2), mirror of my current server (server 1) if any time my (sever 1) stopped responding, (server 2) should start working until I fix server 1.
View 1 Replies
View Related
Nov 17, 2009
I have create a LVM volume in mirror 1 method, with two hard drives, In that one disk is get failed. How can I manage the data availability and also what I need to do next?
View 3 Replies
View Related
Apr 27, 2011
I've got a new server built, shaken down and patched (2.6.18-194.el5). Works nicely.
I don't want to rebuild it from scratch if the root drive goes belly up, but I do NOT have a hardware raid controller.
The root disk should be pretty static at this point... any suggestions how I might back it up?
I was thinking I could put in another disk (same size or bigger) and use cron to run something like this nightly: dd if=/dev/sda1 of=/dev/sda2
View 4 Replies
View Related
Oct 11, 2009
I am Setting up 3 HP Proliant servers with 2 250GB Hard Drives in each. How Do I mirror the drives, and link all the servers together??? I am installing Centos 5.3. From the software install menu I installed Gnome, and the Server software, but can't seem to figure out how to get into the server side of it from gnome. Sorry for all the questions, but I have been out of the loop of all this for about 8 years and trying to re-learn everything.
View 4 Replies
View Related
Nov 28, 2009
I recently setup a software RAID1 with two hard drives for testing. I manually unplugged one hard drive to test redundancy and it was fine. I then did the same to the second and plugged back in the first and it was fine. But when I plugged both back in it is only loading one of the mirrors instead of both. I am guessing when the mirror (failed), at least as far as the system knew it removed it from the load sequence to prevent data corruption... how do I go about re-enabling it?.
cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[1]
[code]....
View 1 Replies
View Related
Apr 1, 2009
I was puzzling over the nss dependence problem that people are having in upgrading 5.2 to 5.3. The issue is clear (that the mirror people are using for [updates] is not pointing to the latest set when an uptodate mirror may be being used for your [base]). My question is though how the mirror list decides whether a mirror is fresh. According to [URL] then this mirror [URL] is "green" which presumably means that the system thinks it is up to date (last probe was 1 hour ago). However if you look at the files on the mirror now (12:54 BST, Apr 1 2009) you see that the date of the 5/ branch is 24-Jun-2008. Thus this host is not ready to give you updates to 5.3. Is this a bug?
View 2 Replies
View Related
Apr 8, 2009
I am using LVM2 Clustering to mirror logical volumes between 2 different storage arrays ( iscsi target hosts). Everything is up and running fine, but I would like to be able to monitor the status of the mirror(s), and "re-sync" them if necessary.
I have attempted the locate the information from Google. From what I have read, lvdisplay -v should tell me whether the mirrors are in sync, but it either is not, or I am simply miss reading it. I have come also across information stating lvchange -m [ 0 | # ] should be used to add or remove mirror copies. Is the is correct / only way to "resync" a mirror, in the event that I can determine the mirror is actually out sync?
For those who are familiar with Symantec's VERITAS volume manager, I am looking get the equivalent information related to plexes from vxprint, the equivalent function from /etc/vx/bin/vxreattach -br, and the progress information from vxtask list. I hope the information is currently "search challenged", or I am simply not fully comprehending what I have found.
View 1 Replies
View Related
Jan 21, 2010
After reading a lot of docs, I'm still having problems using wget to download a Centos repo from a mirror. Here's my best attempt so far:
$cd /repos/centos/5.4
$wget -r -nH --cut-dirs=3 -np [URL]
Of course I get all the unwanted index files etc, but I seem to get a lot of other downloads from the mirror, not just their 5.4 directory. It's like it's following other links on the web pages. Maybe I should be using "ftp://" instead of "http://" considering it's an ftp site, but I seem to have connection problems that way.
View 1 Replies
View Related
Jun 15, 2010
since yesterday, this domain has been painful slow and the only fix is removing it from /var/cache/yum/updates/mirrorlist.txt the last straw was about an hour ago, when 10kb/s was the max bandwidth and I had to download perl and glibc * glibc-common it would have taken over an hour. once removed from updates/mirrorlist the other mirrors picked up the slack and I was back in business,
View 1 Replies
View Related
Mar 1, 2011
So everytime i try and use the "yum" command. for some reason it doesn't go past this point: "loading mirror speeds from cached host files". i cleaned up the cache and rebuilt the OS again, and im still getting this problem. would this be a problem with my internet connection? I'm using CentOS 5.5.
View 1 Replies
View Related