今天,如果我这样做,$ yum remove packageA
我会受到以下欢迎:
Removing:
packageA noarch 3.5.1.b37-15 @yumFS 293 k
Removing for dependencies:
packageB noarch 3.5.1.b125-7 @yumFS 87 M
..
Is this ok?
Run Code Online (Sandbox Code Playgroud)
我想删除 packageA 而不删除 packageB (etc) 这可能吗?
我有一个源自 /etc/init.d/XX 脚本的“服务”,并为其生成了一个 systemd包装器。它不会在任何运行级别自动启动,并且当我运行时systemctl --all
它systemctl list-unit-files --all
不会显示在任何列表中。
我的预感是,因为它没有依赖项,尚未启动,所以它没有“加载”到 systemd 中(因此未启用,未加载),因此 systemd 不会列出它。
有没有办法获取所有可能的服务的完整列表,即使是那些尚未启动且未自动启动的服务?或者做systemctl search
同等的事情?
此相关问题仅询问将在启动时尝试的服务列表。
“--all”下的man
页面显示systemctl
要列出系统上安装的所有单元,请使用 list-unit-files 命令
但这些禁用的单位不会出现在 的输出中list-unit-files
。
yum xxx
...
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
Run Code Online (Sandbox Code Playgroud)
我不想完成交易,我该怎么做?
跑步yum clean all
不行。运行yum-complete-transaction
并回答“N”提示也没有,它只是说“不删除旧的事务文件”