自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Fedora apt軟件安裝和簡單用法

系統(tǒng) Linux
Fedora apt安裝和配置好apt的第一步是執(zhí)行 apt-get update ,目的是來從Fedora apt源中取回Fedora apt軟件包的列表;也就是我們上面說的那個(gè)sources.list提到的源;

Fedora apt軟件已被廣泛應(yīng)用但是也在不斷的更新,這里介紹Fedora apt軟件安裝設(shè)置使用,幫助大家安裝更新Fedora apt軟件系統(tǒng)。緊扣Fedora系統(tǒng)的特性,并結(jié)合應(yīng)用實(shí)例進(jìn)行講解,既可作為高校計(jì)算機(jī)專業(yè)學(xué)生學(xué)習(xí)Linux操作系統(tǒng)的教材,也可以作為Linux開源愛好者、Linux桌面系統(tǒng)用戶、網(wǎng)絡(luò)系統(tǒng)管理員、軟件開發(fā)人員的參考。

一、Fedora apt安裝和簡單用法;

1、Fedora apt安裝;
#rpm -ivh http://ftp.freshrpms.net/pub/fedora/linux/extras/4/i386/apt-0.5.15cnc7-6.fc4.i386.rpm
2、導(dǎo)入GPG簽名;
#rpm --import http://svn.rpmforge.net/svn/branches/rpms/matthias/apt/RPM-GPG-KEY.freshrpms
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
3、加Fedora core 4.0的源;
在/etc/apt/目錄中找到 sources.list,在里面加如下的兩行;
rpm http://ayo.freshrpms.net fedora/linux/4/i386 core extras updates freshrpms
rpm http://rpm.livna.org/ fedora/4/i386 lvn
4.apt 簡單的應(yīng)用;

1]安裝和配置好apt的第一步是執(zhí)行 apt-get update ,目的是來從Fedora apt源中取回Fedora apt軟件包的列表;也就是我們上面說的那個(gè)sources.list提到的源;
[root@localhost beinan]# apt-get update
You don't seem to have one or more of the needed GPG keys in your RPM database.
Importing them now...
Get:1 http://ayo.freshrpms.net fedora/linux/4/i386 release [1834B]
Fetched 1834B in 8s (222B/s)
Get:1 http://ayo.freshrpms.net fedora/linux/4/i386/core pkglist [518kB]
Get:2 http://ayo.freshrpms.net fedora/linux/4/i386/core release [151B]
Get:3 http://ayo.freshrpms.net fedora/linux/4/i386/extras pkglist [1262kB]
Get:4 http://ayo.freshrpms.net fedora/linux/4/i386/extras release [155B]
Get:5 http://ayo.freshrpms.net fedora/linux/4/i386/updates pkglist [1107kB]
Get:6 http://ayo.freshrpms.net fedora/linux/4/i386/updates release [157B]
Get:7 http://ayo.freshrpms.net fedora/linux/4/i386/freshrpms pkglist [65.3kB]
Get:8 http://ayo.freshrpms.net fedora/linux/4/i386/freshrpms release [161B]
Fetched 2952kB in 59s (49.9kB/s)
Reading Package Lists... Done
Building Dependency Tree... Done

2]安裝、升級、移除Fedora apt軟件包的用法;
a)Fedora apt軟件包的安裝;[root@localhost beinan]# apt-get install 軟件包名稱
注:不要加版本號,軟件名就好;
比如我們想安裝或者升級firefox ,就可以直接用 apt-get install firefox ;
[root@localhost beinan]# apt-get install firefox
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
firefox (1.0.4-4 => 1.0.6-1.1.fc4)
1 upgraded, 0 newly installed, 0 removed and 234 not upgraded.
Need to get 19.2MB of archives.
After unpacking 17.0kB of additional disk space will be used.
Get:1 http://ayo.freshrpms.net fedora/linux/4/i386/updates firefox 0:1.0.6-1.1.fc4 [19.2MB]
Fetched 19.2MB in 6m25s (49.8kB/s)
Checking GPG signatures...  [100%]
Committing changes...
Preparing...                [100%]
1:firefox                   [100%]
Done.
b)移除Fedora apt軟件包;
[root@localhost beinan]# apt-get remove 軟件包名
舉例:
[root@localhost beinan]# apt-get remove  firefox
c)對系統(tǒng)全面升級;
[root@localhost beinan]# apt-get upgrade
[root@localhost beinan]# apt-get  dist-upgrade
這兩個(gè)功能差不多;
d)常用的參數(shù)選項(xiàng);
[root@localhost beinan]# apt-get install  -y  軟件包名
比如:
[root@localhost beinan]# apt-get install  -y  gaim
注:如果意外中斷的包下載和安裝,可以用-y參數(shù)來繼續(xù)下載安裝,如上面gaim我下載到10%,可以用上面的命令接著來下載安裝或者升級;
[root@localhost beinan]# apt-get install  -d  軟件包名 

比如:
[root@localhost beinan]# apt-get install  -d
注:只是下載Fedora apt軟件包,不解包,也不安裝,下載到本地機(jī)的目錄為 /var/cache/apt/archives
3]清理apt-get 后下載下來的包和未完成的包;
[root@localhost beinan]# apt-get  clean
通過apt-get下載下來的包存放在 /var/cache/apt/archives目錄中;有時(shí)我們中斷一些正在apt-get 的包,這樣的包沒有完全下載下來;我們也可以清理掉;也可以用繼續(xù)接著下載安裝,也可以清理掉;
這樣apt-get clean 就會刪除 已經(jīng)下載完成的位于/var/cache/apt/archives目錄的所有包;也會清理掉下載未完成的包位于/var/cache/apt/archives/partial/
這個(gè)功能還是比較有用的,因?yàn)閍pt-get 下載和安裝量極大,要定期清理;

二、synaptic的安裝和用法;

相對 Fedora apt-get的命令行操作來說,synaptic的操作還是極為簡單的;synaptic全是點(diǎn)鼠標(biāo)可視化操作;我等菜鳥不必知道什么原理不原理的,原理是早早晚晚都會知道,這有個(gè)時(shí)間的過程;但我們得把自己想要安裝的東西得安裝上,好在LinuxSir.Org 灌水啊,哈哈;
1]安裝:
[root@localhost beinan]# apt-get install synaptic
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
synaptic (0.57.2-1.fc4)
0 upgraded, 1 newly installed, 0 removed and 234 not upgraded.
Need to get 1682kB of archives.
After unpacking 4311kB of additional disk space will be used.
Get:1 http://ayo.freshrpms.net fedora/linux/4/i386/extras synaptic 0.57.2-1.fc4 [1682kB]
Fetched 1682kB in 46s (36.2kB/s)
Checking GPG signatures...   [100%]
Committing changes...
Preparing...                 [100%]
1:synaptic                   [100%]
Done.
2]用法;簡單吧;
想安裝點(diǎn)什么就安裝點(diǎn)什么吧;
建議:新手不要大規(guī)模的升級系統(tǒng),要先安裝和升級幾個(gè)你想用的包;比如 xmms等;等手熟了,我們再大規(guī)模的升級和安裝,但最好還是不要這樣做,畢竟圖形化的工具,有時(shí)會出現(xiàn)崩潰。所以還是小批量的比較好;

后記:希望弟兄們修正和補(bǔ)充,謝謝;

【編輯推薦】

  1. 介紹Fedora yum管理工具的使用在LINUX系統(tǒng)中
  2. Fedora Core網(wǎng)絡(luò)配置相關(guān)的文件和命令-Linux系統(tǒng)操作
  3. Fedora core軟件系統(tǒng)倉庫獲取工具
  4. Fedora軟件服務(wù)器管理Unix
  5. 簡述在Linux系統(tǒng)中的Fedora 8指紋應(yīng)用
責(zé)任編輯:佚名 來源: CSDN
相關(guān)推薦

2009-12-14 13:27:06

Ruby區(qū)間

2014-06-19 10:43:37

AndroidScrollerView平滑滾動

2013-06-05 09:37:09

WindumpWindump網(wǎng)絡(luò)命令

2009-12-28 10:29:34

Fedora 11安裝

2010-08-17 10:39:39

DIVabsoluterelative

2009-09-10 15:27:16

C# get set

2009-07-24 15:46:00

ASP.NET登陸控件

2010-03-17 17:13:55

Fedora 常用軟件

2010-03-17 17:16:46

Fedora 常用軟件

2010-03-17 17:07:55

fedora 常用軟件

2009-12-28 12:25:44

2009-12-21 15:19:00

Fedora 10安裝

2009-12-28 17:12:38

Fedora Foru

2009-12-18 13:43:22

2024-11-15 00:09:21

2010-02-23 17:47:27

Fedora RPM

2010-02-02 16:01:30

安裝fedora 12

2010-01-11 14:39:49

Fedora 8飛信安

2010-02-02 18:06:25

VNC Server

2010-01-11 17:08:49

Fedora 10安裝
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號