This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 10 July,2009 0:59

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


Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.