下載安裝rp-pppoe的srpm包

將 rp-pppoe 軟件下載到 /root 底下:

[root@flc sbin]# cd ~
[root@flc ~]# ls
anaconda-ks.cfg     upgrade.log       install.log         rpmbuild                     upgrade.log.syslog       install.log.syslog  RPM-GPG-KEY.dag.txt   

rp-pppoe-3.10-8.el6.src.rpm

查看相依性
[root@flc ~]# rpm -qpR rp-pppoe-3.10-8.el6.src.rpm
libtool  
autoconf  
automake  
coreutils  
ppp  
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
[root@flc ~]# rpm -q ppp
ppp-2.4.5-5.el6.x86_64

[root@flc ~]# rpmbuild --rebuild rp-pppoe-3.10-8.el6.src.rpm

[root@flc ~]# ll /root/rpmbuild/RPMS/x86_64/
總用量 240
-rw-r--r--. 1 root root  97608  5月 18 14:50 rp-pppoe-3.10-8.el6.x86_64.rpm
-rw-r--r--. 1 root root 146176  5月 18 14:50 rp-pppoe-debuginfo-3.10-8.el6.x86_64.r

[root@flc ~]# cd /root/rpmbuild/RPMS/x86_64/

[root@flc x86_64]# rpm -Uvh rp-pppoe-3.10-8.el6.x86_64.rpm

[root@flc x86_64]# rpm -q rp-pppoe
rp-pppoe-3.10-8.el6.x86_64
[root@flc x86_64]# whereis pppoe-setup
 pppoe-setup: /sbin/pppoe-setup      /usr/sbin/pppoe-setup       /usr/share/man/man8/pppoe-setup.8.gz
[root@flc x86_64]# cd /sbin
[root@flc sbin]# ls pppoe*                      #顯示以pppoe打頭的文件
pppoe            pppoe-relay      pppoe-sniff      pppoe-stop
pppoe-connect    pppoe-server     pppoe-start      
pppoe-discovery  pppoe-setup      pppoe-status

查看rp-pppoe的安裝路徑:該軟件相關的配置參數被寫入/var/lib/rpm/ 目錄下的數據庫文件中,而安裝文件如下,

[root@flc ~]# rpm -ql rp-pppoe
/etc/ppp/firewall-masq
/etc/ppp/firewall-standalone
/etc/ppp/pppoe-server-options
/etc/rc.d/init.d/pppoe-server
/sbin/pppoe
/sbin/pppoe-connect
/sbin/pppoe-relay
/sbin/pppoe-server
/sbin/pppoe-setup
/sbin/pppoe-sniff
/sbin/pppoe-start
/sbin/pppoe-status
/sbin/pppoe-stop
/usr/sbin/adsl-start
/usr/sbin/adsl-stop
/usr/sbin/pppoe
/usr/sbin/pppoe-connect
/usr/sbin/pppoe-relay
/usr/sbin/pppoe-server
/usr/sbin/pppoe-setup
/usr/sbin/pppoe-sniff
/usr/sbin/pppoe-start
/usr/sbin/pppoe-status
/usr/sbin/pppoe-stop
/usr/share/doc/rp-pppoe-3.10
/usr/share/doc/rp-pppoe-3.10/LICENSE
/usr/share/doc/rp-pppoe-3.10/configs
/usr/share/doc/rp-pppoe-3.10/configs/firewall-masq
/usr/share/doc/rp-pppoe-3.10/configs/firewall-standalone
/usr/share/doc/rp-pppoe-3.10/configs/pap-secrets
/usr/share/doc/rp-pppoe-3.10/configs/pppoe-server-options
/usr/share/doc/rp-pppoe-3.10/configs/pppoe.conf
/usr/share/doc/rp-pppoe-3.10/pppoe-connect
/usr/share/doc/rp-pppoe-3.10/pppoe-init
/usr/share/doc/rp-pppoe-3.10/pppoe-setup
/usr/share/doc/rp-pppoe-3.10/pppoe-start
/usr/share/doc/rp-pppoe-3.10/pppoe-status
/usr/share/doc/rp-pppoe-3.10/pppoe-stop
/usr/share/man/man5/pppoe.conf.5.gz
/usr/share/man/man8/pppoe-connect.8.gz
/usr/share/man/man8/pppoe-relay.8.gz
/usr/share/man/man8/pppoe-server.8.gz
/usr/share/man/man8/pppoe-setup.8.gz
/usr/share/man/man8/pppoe-sniff.8.gz
/usr/share/man/man8/pppoe-start.8.gz
/usr/share/man/man8/pppoe-status.8.gz
/usr/share/man/man8/pppoe-stop.8.gz
/usr/share/man/man8/pppoe.8.gz

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章