Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103725104
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-05-13 11:06:57

作者: yourfriend  出自:
Fedora 9 带着 KDE4/EXT4/PackageKit 等强悍特性快来临了,菜鸟只懂新装而不会跨版本升级,所以准备在Fedora8上做点惊险举动:Synaptic/apt-get试用。

初步感想:
1、感叹Fedora包管理的灵活。
2、Synaptic 比 add/remove software、yumex好用,F9的PackageKit不知道会怎样呢。
3、速度上apt-get与yum一样,源地理位置不佳“超级牛力”也没辙。惊人发现apt-get也是单线程!?
4、yum-presto的deltarpms更新无法用于apt
  • 想用划时代的deltarpms请看
  • 官方进度
5、package-cleanup比apt-get autoremove强大。(不作介绍)
6、没弄懂Fedora里apt的gpg控制
7、系统可以同时安装多个包管理工具yum/apt/smart,估计Fedora的包管理工具与包数据库是分离的。但千万别同时开多个包管理工具同时对包的数据库进行操作。例如别:同时开2个终端,同时apt-get install / smart install


华丽的分割线=====================================

1、安装 yum install synaptic apt
安装完后,可以在Applications --> System Tools --> Synaptic Package Manager 里找到。

2、配置一下源的文件,修改前记得备份

/etc/apt/sources.list.d/fedora.list
CODE:
# Fedora
#repomd fedora/linux/releases/$(VERSION)/Everything/$(ARCH)/os/
repomd releases/$(VERSION)/Everything/$(ARCH)/os/
#repomd fedora/linux/releases/$(VERSION)/Everything/$(ARCH)/os/

# Debug packages
# repomd fedora/linux/releases/$(VERSION)/Everything/$(ARCH)/debug/

# sources
#repomd-src fedora/linux/releases/$(VERSION)/Everything/source/SRPMS/

/etc/apt/sources.list.d/fedora-updates.list
CODE:
# Fedora
#repomd fedora/linux/updates/$(VERSION)/$(ARCH)/
repomd updates/$(VERSION)/$(ARCH)/
#repomd fedora/linux/updates/$(VERSION)/$(ARCH)/
#repomd Fedora/linux/updates/$(VERSION)/$(ARCH)/

# Debug packages
#repomd fedora/linux/updates/$(VERSION)/$(ARCH)/debug/

# sources
#repomd-src fedora/linux/updates/$(VERSION)/SRPMS/

/etc/apt/sources.list.d/livna.list
CODE:
# rpm.livna.org sources.list entries for apt-rpm with repomd support,
#

# Please use a nearby repository - a list of mirrors is available eg. at
# . Pick one from the list, and
# replace below with it.

# -- Main repository
#repomd $(VERSION)/$(ARCH)/
repomd $(VERSION)/$(ARCH)/
#repomd $(VERSION)/$(ARCH)/
#repomd $(VERSION)/$(ARCH)/debug/
#repomd-src $(VERSION)/SRPMS/

# -- Potential updates in testing
#repomd testing/$(VERSION)/$(ARCH)/
#repomd testing/$(VERSION)/$(ARCH)/debug/
#repomd-src testing/$(VERSION)/SRPMS/

# -- Development repository -- requires Fedora Core + Extras development
#repomd development/$(ARCH)/
#repomd development/$(ARCH)/debug/
#repomd-src development/SRPMS/

/etc/apt/sources.list
  • 这里包含了3个源:compiz-fusion非官方源、Adobe源、Freshrpms源。而我把前后2个都注释掉了。要用的朋友把井号去掉,注意livna和freshrpms同时使用易造成冲突。

    CODE:
    # Add any local / 3rd party repositories here..

    #compiz-fusion非官方
    repomd compiz/fusion/$(VERSION)/$(ARCH)/

    #Adobe
    repomd linux/i386/

    #freshrpms
    #repomd fedora/linux/$(VERSION)/$(ARCH)/freshrpms/

    ==================================================
    现在已经OK!
    apt-get update
    apt-get upgrade

    问题:
    还不知道怎样针对单个源关闭gpg签名验证,我一口气全部统一关闭了。把GPG-Check前 // 去掉。
    /etc/apt/apt.conf
    CODE:
    // User customizable configuration

    RPM
    {
    // Uncomment to disable GPG-signature checking for packages
    // GPG-Check "false";
    // Uncomment to prevent kernel being handled along with (dist-)upgrade
    // Upgrade-Virtual "false";
    // Uncomment to hold packages with modified config files in (dist-)upgrade
    // Preserve-Config "true";
    };

    // Options for the downloading routines
    Acquire
    {
    // Retries "1";
    // http::Proxy "";
    // http::Proxy "";
    };

    阅读(373) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~