-
%prep Normally this involves unpacking the sources and applying any patches %build This generally involves the equivalent of a "make" %install This generally involves the equivalent of a "make install" %files Do a "list check". Checks are made to verify that each file exists %post Post install commands %preun Pre uninstall commands (called with rpm -e just before uninstalling the package) %postun Post uninstall commands (called with rpm -e just after the package has been removed)
-
-
# /etc/yum.repos.d/FC6.repo
-
[fc6-base]
-
name=Fedora Core 6 Updates
-
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=$basearch
-
enabled=0
-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
-
gpgcheck=0
-
[fc6-updates]
-
name=Fedora Core 6 Updates
-
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc6&arch=$basearch
-
enabled=0
-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
-
gpgcheck=0
-
[fc6-extras]
-
name=Fedora Core 6 Extras
-
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-6&arch=$basearch
-
enabled=0
-
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
-
gpgcheck=0
-
# ————————————————–
-
yum install package_name —enablerepo=fc6*
-
-
-
# Use of ip command
-
ip route add 192.168.55.0/24 via 192.168.1.254 dev eth1
-
route add -net 192.168.55.0 netmask 255.255.255.0 gw 192.168.1.254 dev eth1
-
#———————————————-
-
# Red Hat/Fedora Linux Static route file
-
#———————————————-
-
cat /etc/sysconfig/network-scripts/route-eth0
-
GATEWAY0=192.168.1.254
-
NETMASK0=255.255.255.0
-
ADDRESS0=192.168.55.0
-
GATEWAY1=10.164.234.112
-
NETMASK1= 255.255.255.240
-
ADDRESS1=10.164.234.132
-
#————————————
-
# Debian Linux static routes file
-
#————————————
-
cat /etc/network/interface
-
auto eth0
-
iface eth0 inet static
-
address 192.168.1.2
-
netmask 255.255.255.0
-
gateway 192.168.1.254
-
up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
-
down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
“red hat” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum
-