LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Does the CentOS DVD contains all available packages? (https://www.linuxquestions.org/questions/linux-newbie-8/does-the-centos-dvd-contains-all-available-packages-4175454822/)

Annielover 03-20-2013 05:07 AM

Does the CentOS DVD contains all available packages?
 
Hi all,

My CentOS server isn't connected to the internet, so I'd like to set up a local yum repository by copying all the packages from the CentOS DVD.

But does the CentOS DVD contains all the currently available packages?
I.e. when i execute
Code:

yum install mysql mysql-server
will yum find those packages?

Thank you!

RaviTezu 03-20-2013 05:18 AM

The DVD's mostly contain all the common packages.
As you're trying to install mysql, it may have the packages.

chrism01 03-20-2013 06:04 AM

This shows how https://code.google.com/p/iredmail/w...Yum_Repository

DavidMcCann 03-20-2013 01:07 PM

The 2-DVD set includes all the basic stuff and mysql is on the first disk. Edit
/etc/yum.repos.d/CentOS-Media.repo
and set enabled=1 to use it.

chrism01 03-20-2013 07:01 PM

As per my link above, that's 'enabled=1', honest :)

jitendra.sharma 03-21-2013 02:41 AM

yes you can make your own repository via ftp services and you can install this package also...

first mount your cd
#mount /dev/cdrom /mnt
#cd /mnt/CentOS
#rpm -ivh createrepo*
#rpm -ivh vsftpd*

#service vsftpd restart
#chkconfig vsftpd on

then copy all packages to your ftp defaults location
#cp -rv /mnt/CentOS /var/ftp/pub/

then go to the packages location
#cd /var/ftp/pub/CentOS/
type command to create repository database
#createrepo .
then configure yum.repo file

vim /etc/yum.repos.d/yum.repo

[yum]
name=yumserver
baseurl=ftp://"type your server ip"/pub/CentOS
enabled=1
gpgcheck=0

Madhu Desai 03-21-2013 10:01 AM

This is my step-by-step instructions for creating local repo from my notes. hope its helpful.

Code:

First. Install necessary packages (ftp server and createrepo)
        # yum install vsftpd
        # yum install createrepo

Second. Make necessary directories
        # mkdir /var/ftp/pub/centos
        # mkdir /media/{1,2}

Third. Mount ISO files
        # mount -o loop CentOS-DVD1.iso /media/1
        # mount -o loop CentOS-DVD2.iso /media/2

Fourth. Copy contents to repository directories
        # cp -arv /media/1/* /var/ftp/pub/centos/
        # cp -arnv /media/2/* /var/ftp/pub/centos/

Fifth. Build database for repository
        # createrepo --database /var/ftp/pub/centos/Packages/

Sixth. Build database for group install
        # createrepo -g /media/1/repodata/0d..a3-c6-x86_64-comps.xml /var/ftp/pub/centos/Packages/

Seventh. Create repo file
        # vi /etc/yum.repos.d/localcentos.repo
        [localcentos]
        name=Local CentOS-$releasever.4 $basearch Repository
        baseurl=file:///var/ftp/pub/centos/Packages/
        enabled=1
        gpgcheck=1
        gpgkey=file:///var/ftp/pub/centos/RPM-GPG-KEY-CentOS-6
Eighth. Check repo
        # yum repolist
        # yum install kdebase
        # yum groupinstall "development tools"
        # yum groupinstall Virtualization

Ninth. Start service
        # chkconfig vsftpd on (permanent)

Tenth. For client boxes:
        # vi /etc/yum.repos.d/localcentos.repo
        [localcentos]
        name=CentOS 6.4 Local Repository
        baseurl=ftp://192.168.1.2/pub/centos/Packages
        enabled=1
        gpgcheck=1
        gpgkey=ftp://192.168.1.2/pub/centos/RPM-GPG-KEY-CentOS-6

since u mentioned there is no internet u can install(rpm) following files from dvd
vsftpd:
vsftpd*.rpm

createrepo:
deltarpm*.rpm
python-deltarpm*.rpm
createrepo*.rpm

DavidMcCann 03-21-2013 12:48 PM

A couple of points.

1. The CentOS live disk does not contain (as far as I know) server software. The website states that it's for setting up a workstation, rescue, or starting a net install.

2. If you have the full version of CentOS (2 DVD set), you don't need to create repo data as suggested in posts 6 and 7. It's already done for you when you install.


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