LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1355|回复: 11

提前感受Dapper +1 Edgy Eft

[复制链接]
发表于 2006-4-30 12:38:27 | 显示全部楼层 |阅读模式
提前感受Dapper +1 Edgy Eft 呵呵,说是提前感受Edgy Eft,实际这标题有点夸张,不过也跟Edgy Eft有点关系了,相信有看过Mark Shuttleworth的邮件的人都知道,Edgy Eft将采用Smart Package Manager,也就是一种新的包管理架构,中文翻译过来或许可以叫做智能包管理器

The Smart Package Manager project has the ambitious objective of creating smart and portable algorithms for solving adequately the problem of managing software upgrading and installation. This tool works in all major distributions, and will bring notable advantages over native tools currently in use (APT, APT-RPM, YUM, URPMI, etc).

Notice that this project is not a magical bridge between every distribution in the planet. Instead, this is a software offering better package management for these distributions, even when working with their own packages. Using multiple package managers at the same time (like rpm and dpkg) is possible, even though not the software goal at this moment.

From The Free On-line Dictionary of Computing:

smart

1. <programming> Said of a program that does the {Right Thing} in a wide variety of complicated circumstances. (...)



这是一些特性

现在我们就来感觉一下他到底有多智能,
当然了我们要感受他的智能,首先是要安装他,在官方网站上
有各种各样的包,不过在dapper下我们还是用apt-get来安装。
sudo apt-get install smartpm
安装好以后他默认会帮我们设置好两个channel也就是频道,现在我们来加入自己的频道,
不过他的频道格式和我们通常的不一样大概是这样子的。

[universe-apt]
type = apt-deb
name = 'universe' deb-repository on:http://ubuntu.cn99.com/ubuntu/
baseurl = http://ubuntu.cn99.com/ubuntu/
distribution = dapper
components = universe

呵呵是不是有点复杂,不过没关系这里有一个脚本可以帮助你把sources.list转换成smartpm需要的格式。
这是转换脚本下载地址 另外你也可以在gui下加入channel.
sudo smart --gui 启动smartpm的gui界面。

http://www.cublog.cn/u/6171/upfile/060429002628.png
在Edit下面的Channels里面加入Channel.
下面有一两张图你可以参考一下,
http://www.cublog.cn/u/6171/upfile/060429001525.png


http://www.cublog.cn/u/6171/upfile/060429001603.png




                                                                                                            

增加channel以后,你就可以用smartpm来更新系统和安装软件,现在试一下
sudo smart     update  sudo smart upgrade 呵呵!
安装软件可以用sudo smart install smarpm,不一一列举了。

下面是一些参数anthonyho@ubuntu:~$ smart
Usage: smart command [options] [arguments]

Action commands:
    update
    install
    reinstall
    upgrade
    remove
    check
    fix
    download
    clean

Query commands:
    search
    query
    info
    stats

Setup commands:
    channel
    priority
    mirror
    flag

Run "smart command --help" for more information.

Options:
  --version             Show program's version number and exit
  --config-file=FILE    Configuration file (default is <data-dir>/config)
  --data-dir=DIR        Data directory (default is /var/lib/smart/)
  --log-level=LEVEL     Set the log level to level (debug, info, warning,
                        error)
  --gui                 Use the default graphic interface
  --shell               Use the default shell interface
  --interface=NAME      Use the given interface
  --ignore-locks        Don't respect locking
  -o OPT, --option=OPT  Set the option given by a name=value pair

Examples:
  smart install --help
  smart install pkgname
  smart --gui
  smart --gui install pkgname
  smart --shell

anthonyho@ubuntu:~$

个人感觉smartpm还是蛮强大的,架构也不错,并且支持多种格式,各种系统。蛮值得大家都 试一下。
ps:在rpm环境下也可以使用,smarpm支持的有

APT-DEB Repository

APT-RPM Repository

DPKG Installed Packages

Mirror Information

Red Carpet Channel

RPM Directory

RPM Header List

RPM MetaData (YUM)

RPM Installed Packages

Slackware Repository

Slackware Installed Packages

URPMI Repository

模块化,(全新的包处理算法)智能处理,多种运行界面(命令行,图形界面,shell交互方式),多种包格式支持,智能优先级系统,镜像自动平衡下载,多种下载机制,可移动媒介支持......你还不心动吗?
http://anthonyho.cublog.cn
发表于 2006-4-30 13:15:04 | 显示全部楼层
配置文件像yum的。可以看做是ubuntu在远离debian,自成一套,像madriva和redhat当年。
回复 支持 反对

使用道具 举报

发表于 2006-4-30 15:00:29 | 显示全部楼层
woo~~楼主可真急先锋,我dapper都还没有用过呢你就尝试EE了。我等6月出正式的版后把ubuntu全部重新装过(我现在的breezy是从warty一路升级过来的,系统有不少的垃圾文件了。)

smart 代替apt-get命令了?看来ubuntu从debian圈子里越走越独立了。
回复 支持 反对

使用道具 举报

发表于 2006-5-1 10:49:45 | 显示全部楼层
在 mandriva 2006 上试过性能和 AI 都不怎么样。
回复 支持 反对

使用道具 举报

发表于 2006-5-1 11:09:32 | 显示全部楼层
都是用 dpkg , 没有“偏离”的说法

Debian 现在也是不推荐用 apt-get , 而是推荐 aptitude
并且 Debian Sid 也一样用 smartpm
回复 支持 反对

使用道具 举报

发表于 2006-5-2 08:41:37 | 显示全部楼层
ubuntu远离debian我就装debian
回复 支持 反对

使用道具 举报

发表于 2006-5-3 21:15:35 | 显示全部楼层
Post by go1640
配置文件像yum的。可以看做是ubuntu在远离debian,自成一套,像madriva和redhat当年。

的确如此,但是我还是希望ubuntu和debian在软件安装上相互兼容!
回复 支持 反对

使用道具 举报

发表于 2006-5-3 21:19:37 | 显示全部楼层
很希望有这样的东西:
some_pm savepoint
or
some_pm snapshot
然后发现系统有什么不对劲
some_pm log
some_pm diff
some_pm rollback
回复 支持 反对

使用道具 举报

发表于 2006-5-3 23:05:45 | 显示全部楼层
Post by dieken_qfz
很希望有这样的东西:
some_pm savepoint
or
some_pm snapshot
然后发现系统有什么不对劲
some_pm log
some_pm diff
some_pm rollback

用数据库来实现文件系统就行了。所有程序的数据读取都通过DBMS,那么这可以比较容易实现你是要的功能了,只是这样的效率得大打折扣了。
回复 支持 反对

使用道具 举报

发表于 2006-5-4 18:07:46 | 显示全部楼层
NTFS貌似就是如上的一种FS。另外,做RAID就可以有SNAPSHOT和SAVEPOINT的类似作用了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表