Fra*_*s G 11 package-management aptitude apt
我用aptitude管理我的包裹。
我偶尔会浏览我的软件包列表,删除过时的应用程序(从某种意义上说,我不想再使用它们)。
例如,当我有我的系统,我的开发库的数量有限,不希望永久安装,很多人就在那里,让我从源代码编译某些程序一次,并且在很久以前。为了使这些清理会话考虑到不需要的依赖项,我使用了markautoaptitude 命令。
问题是我有时无法再相信我的记忆来区分临时包和我需要保留的东西(因为,例如,我将需要它们明天重新编译某些东西 )。当我与另一个管理员分担服务器上的管理职责时,情况更加严重。或者,我希望我有纪律来清理所有使用后瞬态的包,但历史证明这太令人期待了。
因此:是否有一个工具,比如 markauto 会让我在安装时注释包,不是用标志而是用一个简单的注释字符串说明为什么要安装它们?
理想情况下,该评论可以通过 aptitude(或突触,或当今孩子们用来管理包裹的任何东西)来检索。理想情况下,这将是我和同一服务器上的另一个管理员可以协作的东西,因此,例如,它可以从与包树已有的相同的锁管理系统中受益。
Aptitude 支持“用户标签”,看看它们是否满足您的要求。
add-user-tag, remove-user-tag
Adds a user tag to or removes a user tag from the selected group of
packages. If a package name contains a tilde ("~") or question mark
("?"), it is treated as a search pattern and the tag is added to or
removed from all the packages that match the pattern (see the
section "Search Patterns" in the aptitude reference manual).
User tags are arbitrary strings associated with a package. They can
be used with the ?user-tag(<tag>) search term, which will select
all the packages that have a user tag matching <tag>.
Run Code Online (Sandbox Code Playgroud)
另请参阅选项--add-user-tag、--add-user-tag-to、--remove-user-tag、--remove-user-tag-from。一个示例用法:
aptitude install cinnamon --add-user-tag "for=cinnamon; date=$(date)"
Run Code Online (Sandbox Code Playgroud)
尽管如此,我担心它们只能通过aptitude.