Saturday, April 25, 2009

xfce4.4升级到xfce4.6

发现这几天都是升级! 难道是ubuntu新版本发布带来的冲动?

使用emerge包管理方式升级, 其中, 为了方便, 使用到了autounmask这个工具

如下是旧版时:

jessinio@nio-laptop ~ $ sudo emerge -av xfce4

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] xfce-base/xfce4-4.4.3 USE="alsa cups -minimal -oss -xscreensaver" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


可以知道xfce4套件的放置位置: /usr/portage/xfce-base/xfce4
jessinio@nio-laptop ~ $ ls /usr/portage/xfce-base/xfce4
ChangeLog Manifest metadata.xml xfce4-4.4.3.ebuild xfce4-4.6.1.ebuild

可以确认, portage tree中有xfce4-4.6.1

使用autounmask列出指定版本相关的包:
jessinio@nio-laptop ~ $ sudo autounmask xfce-base/xfce4-4.6.1

autounmask version 0.23 (using PortageXS-0.02.09 and portage-2.1.6.7)

* Using repository: /usr/portage

* Using package.keywords file: /etc/portage/package.keywords
* Using package.unmask file: /etc/portage/package.unmask

* Unmasking xfce-base/xfce4-4.6.1 and its dependencies.. this might take a while..

* Added '=xfce-base/xfce4-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfce4-settings-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfce4-panel-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=x11-themes/gtk-engines-xfce-2.6.0 ~x86' to /etc/portage/package.keywords
* Added '=x11-themes/xfwm4-themes-4.6.0 ~x86' to /etc/portage/package.keywords
* Added '=xfce-extra/xfce4-appfinder-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=net-print/xfprint-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/thunar-1.0.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfce4-session-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfdesktop-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=app-office/orage-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfwm4-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-base/xfce-utils-4.6.1 ~x86' to /etc/portage/package.keywords
* Added '=xfce-extra/xfce4-mixer-4.6.1 ~x86' to /etc/portage/package.keywords
* done!
autoumask就会把上面指定的版本号加入到/etc/portage/package.keywords文件中

发现emerge 还是会有其它的包也需要指定版本的, 如:

jessinio@nio-laptop ~ $ sudo emerge -av xfce4

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=xfce-base/libxfce4util-4.6.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- xfce-base/libxfce4util-4.6.1 (masked by: ~x86 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "xfce-extra/xfce4-mixer-4.6.1" [ebuild])
(dependency required by "xfce-base/xfce4-4.6.1" [ebuild])
(dependency required by "xfce4" [argument])


这时就需要一个个的autounmask了, 没有发现autounmask没有把全部的依赖都解决. 烦!!!

正找到可以全部依赖都可以解决的方法

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.