CentOS 6.4 CentOS Linux 1-1 1-1 Esc Anaconda 1-1 Anaconda 1-1 Anaconda text resolution=m N lowres askmethod ks=params X M N M N 1024 768 640 480 CD Kickstart Kickstart
2 Linux mediacheck noprobe rescue CD Anaconda Shell linux Linux boot: linux text mediacheck 1-1 1-2 1-2 1-3
CentOS 6.4 3 1-3 1-4 1-4 1-5
4 Linux 1-5 1-6 DHCP CentOS 6.4 NetworkManager 1-6
CentOS 6.4 5 1-7 1-7 IP 1-8 Linux BIOS UTC BIOS 1-8
6 Linux 1-9 1-9 1 8 2 $ # % & 3 4 Linux UNIX C: D: Linux Linux 1-10 Anaconda 1-11
CentOS 6.4 7 1-10 Anaconda 1-11 1-12
8 Linux 1-12 3 1 1 ext2 ext3 ext4 vfat red hat CentOS 6.4 ext4 2 swap 3 RAID Logical Volume Management LVM 2 Anaconda MB 1 2 3 3 1
CentOS 6.4 9 2 1-11 1-12 1-12 3 1-11 1-13 1-13 Anaconda 1-14 BIOS Linux Linux dual-boot GRUB Master Boot Record MBR GRUB GRUB CentOS 6.4 Linux http Samba VNC
10 Linux 1-14 HTTP 1-15 1-15
CentOS 6.4 11 1-16 1-16 1-17 1-17
12 Linux 1-18 1-18 1-19 1-19
CentOS 6.4 GRUB CentOS 6.4 13 # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_mail-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 // 0 timeout=5 // 5s splashimage=(hd0,0)/grub/splash.xpm.gz // (hd0,0)/grub/ splash.xpm.gz (hd0,0) Hiddenmenu // title CentOS (2.6.32-358.el6.x86_64) //title title root (hd0,0) //Grub /boot kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_mail-lv_root rd_no_luks rd_lvm_ LV=vg_mail/lv_root rd_no_md rd_lvm_lv=vg_mail/lv_swap crashk ernel=auto LANG=zh_ CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rd_no_dm rhgb quiet //kernel /vmlinuz-2.6.32-358.el6.x86_64 Linux /boot/ vmlinuz-2.6.32-358.el6.x86_64 ro root root Linux ro read only rhgb quiet initrd /initramfs-2.6.32-358.el6.x86_64.img // /boot/ initrd-2.6.9-55.elsmp.img
Yum Yum Yum Yum Yum Yum Yellow dog Updater Modified yellow dog Terra Soft python yup yellow dog updater Linux@Duke Yum rpm rpm Yum HTTP FTP rpm header header rpm Yum /etc /etc/yum.conf /etc/yum /etc/yum.repos.d Yum 1 Yum Yum yum.conf /etc Yum [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_rep ort_page.php?category=yum distroverpkg=centos-release # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d yum.conf cachedir Yum Yum rpm /var/cache/yum debuglevel 0 10 2 logfile Yum /var/log/yum.log
Yum 15 exactarch 1 0 CPU 1 i386 rpm Yum 686 obsoletes update yum(8) upgrade rpm gpgcheck 1 0 gpg gpg Plugins 1 0 installonly_limit bugtracker_url bug distroverpkg Yum redhat-release rpm 2 Yum Yum Yum Yum /etc/yum.repos.d/centos-media.repo /etc/yum.repos.d/ CentOS-Media.repo Yum # /etc/yum.repos.d/centos-media.repo # or for ONLY the media repo, do this: # yum --disablerepo=\* --enablerepo=c6-media [command] [c6-media] name=centos-$releasever - Media baseurl=file:///media/centos/ file:///media/cdrom/ file:///media/cdrecorder/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6 yum.conf [] repository name repository $releasever $basearch baseurl baseurl=url://server1/path/to/repository/ url://server2/path/to/repository/ url://server3/path/to/repository/ url http ftp file baseurl url baseurl gpgcheck enabled Yum gpgkey 3 Yum createrepo createrepo Yum deltarpm
16 Linux libxml2-python python-deltarpm #yum createrepo -y rpm /var/ftp/centos6.4/packages rpm createrepo yum /var/ftp/centos6.4/repodata/ #/bin/cp./*.rpm /var/ftp/centos6.4/packages #createrepo -v /var/ftp/centos6.4 Yum baseurl Yum [c6-media] name=centos-$releasever - Media baseurl=file:///var/ftp/centos6.4 gpgcheck=0 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6 gpgcheck 1 rpm gpgkey rpm --import /path path gpgkey Yum 1 Yum yum check-update yum update yum check-update // yum update // 2 Yum Yum Yum rpm yum install xxx Yum yum remove xxx Yum yum install xxx // Yum xxx yum remove xxx // Yum xxx 3 Yum Yum yum search keyword Instant Messenger yum search messenger Yum rpm messenger rpm gaim kopete yum search // Yum
Yum 17 yum list // yum list updates // yum list installed // yum list extras // Yum Repository 4 Yum yum info packagename yum info // yum info updates // yum info installed // yum info extras // Yum Repository yum provides // 5 Yum Yum header Cache yum clean yum clean headers header yum clean packages rpm yum clean all yum clean packages // (/var/cache/yum) yum clean headers // (/var/cache/yum) headers yum clean oldheaders // (/var/cache/yum) headers yum clean all // (/var/cache/yum) headers 6 httpd [root@mail repodata]# yum install httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * c6-media: Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-26.el6.centos will be installed --> Processing Dependency: httpd-tools = 2.2.15-26.el6.centos for package: httpd-2.2.15-26.el6.centos.x86_64 --> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-26.el6.centos.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-26.el6.centos.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-26.el6.centos.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.2.15-26.el6.centos.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed ---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed ---> Package httpd-tools.x86_64 0:2.2.15-26.el6.centos will be installed ---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================== Package Arch Version Repository Size ===========================================================================
18 Linux Installing: httpd x86_64 2.2.15-26.el6.centos c6-media 821 k Installing for dependencies: apr x86_64 1.3.9-5.el6_2 c6-media 123 k apr-util x86_64 1.3.9-3.el6_0.1 c6-media 87 k apr-util-ldap x86_64 1.3.9-3.el6_0.1 c6-media 15 k httpd-tools x86_64 2.2.15-26.el6.centos c6-media 72 k mailcap noarch 2.1.31-2.el6 c6-media 27 k Transaction Summary =========================================================================== Install 6 Package(s) Total download size: 1.1 M Installed size: 3.6 M Is this ok [y/n]: y // y