For faster navigation, this Iframe is preloading the Wikiwand page for Portage.

Portage

Portage
使用中的Portage
使用中的Portage
当前版本
  • 3.0.64 (2024年4月28日;穩定版本)[1]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言Python
操作系统Gentoo Linux和Gentoo/FreeBSD
平台POSIX兼容并支持Python
类型包管理器
许可协议GPLv2
网站http://www.gentoo.org/proj/en/portage/

PortageGentoo Linux所使用的包管理器,基于ports collection机制。Portage的高度灵活性令Gentoo開發團隊因此稱Gentoo為元发行版[2]Gentoo/Alt英语Gentoo/Alt计划则关注于如何使用Portage管理如BSDMac OS XSolaris等其他操作系统。这些移植中最有名的是Gentoo/FreeBSD英语Gentoo/FreeBSD计划。

Gentoo的软件包管理器规范计划(Package Manager Specification project英语Package Manager Specification projectPMS)正致力于Portage的行为的记录标准化,这些措施刻意使Paludis和pkgcore等替代包管理器使用ebuild树和Gentoo系统包。[3]PMS计划的目标是为Portage制定包括特性、ebuild与包管理器行为的权威参考。

概述

使用Portage

Porthole图形前端

Portage与BSD风格包管理器Ports collection相仿并最早参照了FreeBSD的portage。[4] Portage由Python写成,是Gentoo最重要的工具之一。Portage包含ebuild系统与emerge两个主要部分。ebuild系统构建与安装软件包,emerge为ebuild提供了管理ebuild资源库、解决依赖性与类似问题的接口。(因此这两者的关系与rpmyumdpkgAPT的关系相仿。)

Portage有基于GTK+的图形前端Porthole和基于Haskell的图形前端Himerge。

所提供功能

Portage主要特色是从源码编译用户所需要安装的软件包。此过程中用户可以调整编译器和目标程序的选项以符合系统需要或自己的喜好。与系统管理相关的功能包括:允许平行版本安装、追踪跨软件包依赖、维护记录已安装软件的数据库、提供本地ebuild库、使本地库与远程库相同步。与个别软件包安装相关的功能有:为目标机器指定编译选项、定制构成软件包的组件。

Portage将ebuild按照稳定程度分为三个级别:stable(如在发行时已无已知的安全问题)、keyword masked(主要对未在目标架构上得到充分测试的包)、hard masked(损坏或极度不安全的包)。

脚注

  1. ^ proj/portage.git. 2024年4月28日 [2024年5月17日]. 
  2. ^ Gentoo Linux -- About Gentoo. [2013-03-05]. (原始内容存档于2015-03-14). 
  3. ^ Gentoo's official Package Manager Specification (PMS) project. [2013-03-05]. (原始内容存档于2013-04-27). 
  4. ^ Gentoo Linux Documentation - Making the distribution, Part 3. [2013-03-05]. (原始内容存档于2014-12-22). 

参见

{{bottomLinkPreText}} {{bottomLinkText}}
Portage
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?