LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2013, 06:07 AM   #1
Annielover
Member
 
Registered: May 2011
Location: Belgium
Distribution: Ubuntu Server Edition, Fedora 16
Posts: 90

Rep: Reputation: 8
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!
 
Old 03-20-2013, 06:18 AM   #2
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
The DVD's mostly contain all the common packages.
As you're trying to install mysql, it may have the packages.
 
Old 03-20-2013, 07:04 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
This shows how https://code.google.com/p/iredmail/w...Yum_Repository
 
Old 03-20-2013, 02:07 PM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,674

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
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.

Last edited by DavidMcCann; 03-21-2013 at 01:38 PM. Reason: Correcting ghastly typo!
 
Old 03-20-2013, 08:01 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
As per my link above, that's 'enabled=1', honest
 
Old 03-21-2013, 03:41 AM   #6
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 03-21-2013, 11:01 AM   #7
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
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

Last edited by mddnix; 03-21-2013 at 11:20 AM.
 
Old 03-21-2013, 01:48 PM   #8
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,674

Rep: Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485Reputation: 1485
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repo for Centos 6.3 with 64studiolike packages rajsand Red Hat 0 10-14-2012 04:17 AM
CentOS 5.4 it wont get the packages during installation! Tuts Linux - Newbie 6 02-17-2010 02:00 PM
To update only Security packages on CentOS nandanm1 Linux - Newbie 1 04-28-2009 01:52 PM
Mp3 packages for CentOS 4.4? Guignol Linux - Software 3 01-09-2007 09:21 AM
Where do I get the xorg packages for RHEL/CentOS? abefroman Red Hat 6 05-09-2005 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration