快捷搜索:  as  test  1111  test aNd 8=8  test++aNd+8=8  as++aNd+8=8  as aNd 8=8

亚游国际游戏官网:apt+synaptic在线安装Fedora 4.0软件包



apt是轻量级的在线安装进级的软件担保理系统,synaptic 是图形化的apt软件担保理对象。能够治理Fedora core 4.0 系统及进级源的所有的软件包;是一个极为方便的软件担保理对象;两者共同,效果最佳,最得当我等一无所知的菜鸟弟兄;

可能有的弟兄先容过这个软件,我也把自己的应用履历和大年夜家分享一下;主如果想为新手弟兄写一个一步到位的文档,最好对Linux一无所知的弟兄,也能一起OK 。

一、apt的安装和简单用法;

1、apt的安装;

#rpm -ivh http://ftp.freshrpms.net/pub/fedora/linux/extras/4/i386/apt-0.5.15cnc7-6.fc4.i386.rpm

2、导入GPG署名;

#rpm --import http://svn.rpmforge.net/svn/branches/亚游国际游戏官网rpms/matthias/apt/RPM-GPG-KEY.freshrpms

rpm --import http://rpm.livna.o亚游国际游戏官网rg/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 简单的利用;

1]安装和设置设置设备摆设摆设好apt的第一步是履行 apt-get update ,目的是来从apt源中取回软件包的列表;也便是我们上面说的那个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 n亚游国际游戏官网ow...

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]安装、进级、移除软件包的用法;

a)软件包的安装;

[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)移除软件包;

[root@localhost beinan]# apt-get remove 软件包名

举例:

[root@localhost beinan]# apt-get remove firefox

c)对系统周全进级;

[root@localhost beinan]# apt-get upgrade

[root@localhost beinan]# apt-get dist-upgrade

这两个功能差不多;

d)常用的参数选项;

[root@localhost beinan]# apt-get install -y 软件包名

免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

您可能还会对下面的文章感兴趣: