Unit1
Lab
1. create server1.repo
/etc/yum.repos.d/server1.repo
---略---
2. yum update kernel-PAE
vi /boot/grub/grub.conf
change default = X
3. yum list, yum install, yum remove [package]
4. rpm --import /etc/pki/rpm-gpg/PRM-GPG-KEY-redhat-release
5. rpm -K [package] ---check gpg
[root@server1 tmp]# rpm -K mutt-1.4.2.2-3.0.2.el5.i386.rpm
mutt-1.4.2.2-3.0.2.el5.i386.rpm: (sha1) dsa sha1 md5 gpg OK
[root@server1 tmp]# cat '/bin/date' >> mutt*
[root@server1 tmp]# rpm -K mutt-1.4.2.2-3.0.2.el5.i386.rpm
mutt-1.4.2.2-3.0.2.el5.i386.rpm: (sha1) dsa sha1 MD5 GPG NOT OK
6. rpm -qf [file] VS. #yum provides [file]
[root@server1 sysconfig]# rpm -qf /etc/inittab
initscripts-8.45.19.EL-1
[root@server1 sysconfig]# yum provides /etc/inittab
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
filelists.xml.gz 100% |=========================| 2.2 MB 00:00
initscripts.i386 : The inittab file and the /etc/init.d scripts.
initscripts.i386 : The inittab file and the /etc/init.d scripts
%/etc/hosts, NO RPM provides, because created by Anaconda during installation
Previous post in this category: [雜記]RHCE筆記整理-RH133-Unit1(2)
Next post in this category: [雜記]RHCE筆記整理-RH133-Unit2(1)
學習(2)
[雜記]RHCE筆記整理-考試綱要(2)
Recommend to Front page
Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.