Вы находитесь на странице: 1из 5

2/28/2015

RHEL7:Setupalocalrepositoryforalab.CertDepot

CertDepot
EverythingyouneedtopassyourRHCSA,RHCE,LFCS,LFCE&VCPexams.

Go

searchhere
Home

About

RHEL6

RHEL7

VCP5DCV

RHEL7:Setupalocal
repositoryforalab.
LastupdatedonNovember30,2014(1,489views)NoComments

Upcoming
Events
MAR

6
Fri

Sharethislink

TobeabletoquicklydeploynewVMs,youneedalocal
repository.

MAR

13
Fri

InstalltheApachepackage:
#yumgroupinstally"BasicWebServer"
CreatethedirectoriesfortheCentOSdistributionandthe
updates:

6:00pm
View
Details
vanVugt:
Free
online
classon
SELinux
issues
6:00pm
View
Details
vanVugt:
Free
online
classon
NFS
Kerberos

MAR

6:00pm
20 View
Details
Fri
vanVugt:
#cd/var/www/html
Free
#mkdirpconfrepo/CentOS/7
online
classon
#cdrepo/CentOS/7
ACLs
#mkdirpcentosplus/x86_64extras/x86_64os/x86_64updates/x86_64

Inthesoftwarerequirements,itwasspecifiedtodownloadthe
DVDversionortheEverythingversionoftheCentOS7
http://www.certdepot.net/rhel7setlocalrepositorylab/

1/7

2/28/2015

RHEL7:Setupalocalrepositoryforalab.CertDepot

distribution.Itisnowtimetouseit.
Mountthepreviouslydownloadedisoandcopyitintotheright
place:

APR

3
Fri

6:00pm
View
Details
vanVugt:
Free
online
classon
Apache

#mountoloopCentOS7.01406x86_64DVD.iso/mnt
#cd/mnt
#tarcvf.|(cd/var/www/html/repo/CentOS/7/os/x86_64;tarxvf)
APR
6:00pmView
#cd/;umount/mnt
Details

10
Fri

Inordertopreparethecentosplus,extrasandupdates
repositories,installthecreaterepopackage:

APR

15
#yuminstallcreaterepo
Preparethecentosplus,extrasandupdatesrepositories:

Wed

vanVugt:Free
onlineclasson
troubleshooting
6:00pm
View
Details
vanVugt:
Free
online
classon
iSCSI

#cd/var/www/html/repo/CentOS/7/centosplus/x86_64;createrepo.
APR
6:00pm
#cd../../extras/x86_64;createrepo.
24 View
#cd../../updates/x86_64;createrepo.
Details
Fri
vanVugt:
Free
online
Gointothedirectorywheretherepositoryconfigurationis:
classon
remote
logins
#cd/etc/yum.repos.d
Createthelocal.repofileandpastethefollowinglines:

RHCSA6:
Taskofthe
day

[os]
name=masterBase
baseurl=http://192.168.1.5/repo/CentOS/$releasever/os/$basearch/
gpgcheck=1
Allowedtime:10
gpgkey=file:///etc/pki/rpmgpg/RPMGPGKEYCentOS7
minutes.
Setupadefault
[updates]
configurationHTTP
name=masterUpdates
serverwithSELinuxin
baseurl=http://192.168.1.5/repo/CentOS/$releasever/updates/$basearch/
Enforcingmodeand
gpgcheck=1
activeiptables.
gpgkey=file:///etc/pki/rpmgpg/RPMGPGKEYCentOS7
http://www.certdepot.net/rhel7setlocalrepositorylab/

2/7

2/28/2015

RHEL7:Setupalocalrepositoryforalab.CertDepot

[extras]
name=masterExtras
baseurl=http://192.168.1.5/repo/CentOS/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpmgpg/RPMGPGKEYCentOS7
Allowedtime:15
minutes.
[centosplus]
Setupahttpdvirtual
name=masterCentosPlus
servercalled"dummy"
baseurl=http://192.168.1.5/repo/CentOS/$releasever/centosplus/$basearch/
withDocumentRoot
gpgcheck=1
assignedto/opt.
gpgkey=file:///etc/pki/rpmgpg/RPMGPGKEYCentOS7

RHCE6:Task
oftheday

Note:Ayumupdatecommandwillupdatethesystemwith
whatthelocalApacheserversgot.
Copythelocal.repofileintothe/var/www/html/confdirectory
tomakeitavailabletothenewVMs:
#cplocal.repo/var/www/html/conf
AssigntheSELinuxattributestothefiles:
#restoreconR/var/www/html

Twitter
Tweets

Follow

Jastis4Ever
@Jastis4Ever

6h

How to Configure tigervnc


server on Centos 7: How
to Configure tigervnc
server on Centos 7
bit.ly/1BLEAfI
Retweeted by
CertDepot
Expand

Tweet to @CertDepot

ActivatetheApacheserveratbootandstartit:

#systemctlenablehttpd&&systemctlstarthttpd

AddtheApacheservicetothefirewallconfiguration:

#firewallcmdpermanentaddservice=http
success
Reloadthefirewallconfiguration:
#firewallcmdreload
http://www.certdepot.net/rhel7setlocalrepositorylab/

Recently
Updated
Pages
RHEL7Free
available
resources
RHEL7:Useyum
transaction
history.
RHEL7:Install
3/7

2/28/2015

RHEL7:Setupalocalrepositoryforalab.CertDepot

success
Cleanuptheyumconfiguration:

#yumcleanall
Checktheyumconfiguration:

#yumrepolistall
Loadedplugins:fastestmirror,langpacks

RedHat
EnterpriseLinux
systemsas
virtualguests.
RHEL7RHCSA
Examobjectives
RHEL7:Update
thekernel
package
appropriatelyto
ensurea

bootablesystem.
centosplus|2.9kB00:00
RHEL7:Locate,
extras|2.9kB00:00
read,anduse
os|3.6kB00:00
system
updates|2.9kB00:00
documentation
(1/2):os/7/x86_64/group_gz|157kB00:00
includingman,
(2/2):os/7/x86_64/primary_db|4.9MB00:00
info,andfilesin
Loadingmirrorspeedsfromcachedhostfile
/usr/share/doc.
repoidreponamestatus
RHEL7:Howto
centosplus/7/x86_64masterCentosPlusenabled:0
dealwithHTTPD
extras/7/x86_64masterExtrasenabled:0
SELinuxpolicy.
os/7/x86_64masterBaseenabled:8,465
SELINUX:Use
updates/7/x86_64masterUpdatesenabled:0
booleansettings
repolist:8,465
tomodifysystem
SELinuxsettings.
SELINUX:
Finally,youneedanextrasteptoregularlyupdateyourlablocal
repository.
CreateaBashscriptcalled/root/rsync.shandpastethe
followinglines(wheremirror.ovh.net/ftp.centos.org/7/isthe
urlofacloseCentOSrepository):
#!/bin/bash

Diagnoseand
addressroutine
SELinuxpolicy
violations.
RHEL7:Howto
installaNginx&
PHPservice.

/usr/bin/rsyncavdeletedeleteexcludedexclude"local"exclude"isos"exclu

Givetheexecutionpermissions:
#chmodu+x/root/rsync.sh

Recent
Comments
mfsidonRHEL6

Putthisscriptintotherootcrontab(#crontabe):
http://www.certdepot.net/rhel7setlocalrepositorylab/

LFCSExam
4/7

2/28/2015

RHEL7:Setupalocalrepositoryforalab.CertDepot

0002***/root/rsync.sh
Note:Thefirstsynchronizationwilllastawhilebut,after,itwill
bequick.
Aftersynchronization,youwillgetthiskindofresult:
#yumrepolistall
Loadedplugins:fastestmirror,langpacks
Loadingmirrorspeedsfromcachedhostfile

objectives
CertDepoton
Finalcallfor
RHCSA6&
RHCE6exams.
konradonFinal
callforRHCSA6
&RHCE6
exams.
CertDepoton

Websitenews.
CertDepoton
repoidreponamestatus
RHEL7RHCSA
centosplus/7/x86_64masterCentosPlusenabled:70
Examobjectives
extras/7/x86_64masterExtrasenabled:44
os/7/x86_64masterBaseenabled:8,465
updates/7/x86_64masterUpdatesenabled:866
repolist:9,445

LeaveaReply
Youmustbeloggedintopostacomment.

Pollfor
favorite
book
Whatisyourfavorite
booktoprepare
RHCSA&RHCE
exams?
Damian
Tommasinos
book
MichaelJangs
book
AsgharGhoris
book
Others
None
Vote
ViewResults

http://www.certdepot.net/rhel7setlocalrepositorylab/

5/7

Вам также может понравиться