National Data Center | Where Information lives...

MIRROR SERVER IS STARTED BEING UTILIZED

We have renewed and introduced the mirror servers of CentOS, Ubuntu and Archlinux systems. The users of these systems are provided with the possibility to download the files with the high speed, install the needed software, upgrade the installed software and download the latest versions.

INSTRUCTIONS ON ADJUSTING THE CENTOS REPOSITORY

When deleting the previous repository cache, you should use the following commands.

sudo yum clean all

In order to deactivate the old repository, the following commands should be used.

sudo yum --disablerepo=* update

Using the vi or nano text editor, the new repository adjustment shall be written for the certain file.

sudo vi /etc/yum.repos.d/centos-mndc.repo
[mndc]
name=CentOS-$releasever - MNDC
mirrorlist=http://mirror.datacenter.mn/centos/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.datacenter.mn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.datacenter.mn/centos/RPM-GPG-KEY-centos$releasever
protect=1
enabled=1

After copying the above adjustment,

sudo yum update

you should run the command and renew the repository. Link: http://mirror.datacenter.mn/centos

INSTRUCTIONS ON ADJUSTING THE UBUNTU REPOSITORY

The files storing the old repository information shall be backed-up according to the following commands.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Using the vi or nano text editor, put the symbol “#” in front of the repository that will not be used and make it inactive.

sudo vi /etc/apt/sources.list
#deb http://us.archive.ubuntu.com/ubuntu/ trusty universe main
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe mian

The old repository shall be deactivated as mentioned above.

After making the old repository is deactivated, the following repository should be added to the sources.list file. When adding, please, use the codename suitable or adjusted to own system. As an example, it should be added to the system with the trusty codename as follows:

deb http://mirror.datacenter.mn/ubuntu/ trusty universe main
deb-src http://mirror.datacenter.mn/ubuntu/ trusty universe main
deb http://mirror.datacenter.mn/ubuntu/ trusty-updates universe main
deb-src http://mirror.datacenter.mn/ubuntu/ trusty-updates universe main

After copying the above adjustment,

sudo apt-get update

run the command and renew the repository.

Link: http://mirror.datacenter.mn/ubuntu