[root@linux root]# apt-get remove nessus-common Processing File Dependencies... Done Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: nessus-client nessus-common nessus-server 0 packages upgraded, 0 newly installed, 3 to remove(replace) and 0 not upgraded.Need to get 0B of archives. After unpacking 4863kB will be freed. Do you want to continue? [Y/n] Executing RPM (-e)... warning: /etc/nessus/nessusd.conf saved as /etc/nessus/nessusd.conf.rpmsave [root@linux root]#
(2)自動下載安裝依賴包:
[root@linux root]# apt-get install nessus-server Processing File Dependencies... Done Reading Package Lists... Done Building Dependency Tree... Done The following extra packages will be installed: nessus-common nmap The following NEW packages will be installed: nessus-common nessus-server nmap 0 packages upgraded, 3 newly installed, 0 to remove(replace) and 0 not upgraded.Need to get 1239kB of archives. After unpacking 4889kB will be used. Do you want to continue? [Y/n] Get http://apt.freshrpms.net freshrpms/7.2/freshrpms nessus-common 1:1.1.12-fr1 [101kB] Get:2 http://apt.freshrpms.net freshrpms/7.2/freshrpms nessus-server 1:1.1.12-fr1 [895kB] Get http://apt.freshrpms.net redhat/i386/7.2/os nmap 2.54BETA22-3 [243kB] Fetched 1239kB in 54s (22.8kB/s) Executing RPM (-U)... Preparing... ########################################### [100%] 1-common ########################################### [ 33%] 2:nmap ########################################### [ 66%] 3-server ########################################### [100%] [root@linux root]#
(3)維護系統軟體,自動更新系統 :
[root@linux root]# apt-get upgrade Processing File Dependencies... Done Reading Package Lists... Done Building Dependency Tree... Done The following packages will be upgraded at libxml2 libxml2-devel openldap openldap-clients openldap-devel rsync 7 packages upgraded, 0 newly installed, 0 to remove(replace) and 0 not upgraded.Need to get 2132kB of archives. After unpacking 560kB will be freed. Do you want to continue? [Y/n] Get http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os at 3.1.8-23 [42.6kB] Get:2 http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os libxml2 2.4.10-0.7x.2 [360kB] Get http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os libxml2-devel 2.4.10-0.7x.2 [617kB] Get:4 http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os openldap 2.0.21-1 [424kB] Get http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os openldap-clients 2.0.21-1 [114kB] Get:6 http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os openldap-devel 2.0.21-1 [462kB] Get http://apt-rpm.tuxfamily.org redhat-updates-7.2/redhat/os rsync 2.4.6-8 [112kB] Fetched 2132kB in 3m8s (11.3kB/s) Executing RPM (-U)... Preparing... ########################################### [100%] 1 ########################################### [ 14%] 2:rsync ########################################### [ 28%] 3 ########################################### [ 42%] 4:openldap-clients ########################################### [ 57%] 5-devel ########################################### [ 71%] 6:at ########################################### [ 85%] 7-devel ########################################### [100%] [root@linux root]#
二、安裝apt with rpm及其圖形界面前端Synaptic
下面簡單介紹一下如何下載和安裝apt with rpm apt with rpm可以直接到 http://apt.freshrpms.net 下載安裝,目前該站點提供了redhat 6.2, 7.x,8.0,9.0和fedora core 1,2的軟體升級服務,下面是幾個常用redhat版本的apt下載地址:
http://apt.freshrpms.net/ - Red Hat Linux 6.2, 7.x and 8.0 repositories (with all freshrpms included of course!) http://www.linux.cz/apt-rpm/ - Red Hat Linux 7.x repositories (with all freshrpms included too!) http://apt-rpm.tuxfamily.org/ - Red Hat Linux 6.2, 7.x and 8.0 repositories http://apt.nlc.no/apt/ - Red Hat Linux 6.2, 7.x and Rawhide repositories http://ftp.uninett.no/pub/linux/apt/ - Red Hat Linux 6.2, 7.x, 8.0 and Rawhide repositories http://redhat.usu.edu/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories ftp://mirror.pa.msu.edu/apt/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories http://apt-rpm.codefactory.se/ - Red Hat Linux 7.2, 7.3 and 8.0 and gnomehide repositories http://apt.42h.de/ - Red Hat Linux 7.2, 7.3 and 8.0 repositories http://apt.toggletext.com.au/ - A few Red Hat Linux 7.2 custom packages http://people.ecsc.co.uk/~matt/repository.html - Lots of custom Red Hat Linux 8.0 GNOME 2 and related packages http://ftp-stud.fht-esslingen.de/apt/ - Red Hat Linux 7.x, 8.x and rawhide http://apt.unl.edu/ - Red Hat Linux 7.3 and 8.0 http://kde-redhat.sourceforge.net/ - KDE for Red Hat project