Re: Apt-get autoremove 与 aptitude remove 两者行为是否有区别?
2010/6/23 chenwqin@gmail.com <chenwqin@gmail.com>:
> On 06/22/2010 11:19 PM, Huang, Tao wrote:
>> 不必找啊 你用你说的方法 随便安几个没有用的包 改一改推荐关系就可以咯
>>
>> 我保留意见 安装时只记录是否自动安装的状态 不记录具体包与包的依赖与推荐关系 所以你所描述的情况是错误的 同时被A与B推荐的C
>> 在单独卸载A或B时 都不会引发C的自动卸载 并且ABC三者的安装顺序完全无关
>>
>>
>>
> 这个就是测试过我才这么说的
>
> 同时被A与B推荐的C (A,B手动安装, C自动安装且没有被其他包依赖)
> 在单独卸载A或B时 (apt-get autoremove, aptitude remove),会删除C
>
> 如果C是手动安装的,就不会删除
你改了什么包 怎样改的 用了哪些命令 这些都要写出来才叫"具体例子"
check this out.
acpi-support and pm-utils both recommand radeontool.
=-=-=
$ aptitude show acpi-support pm-utils radeontool
Package: acpi-support
State: installed
Automatically installed: no
...
Recommends: dbus, vbetool, xscreensaver | gnome-screensaver, radeontool
...
Package: pm-utils
State: installed
Automatically installed: yes
...
Recommends: vbetool, radeontool, procps
...
Package: radeontool
State: not installed
...
=-=-=
install radeontool and mark it auto-installed.
=-=-=
$ aptitude install radeontool+M
...
$ aptitude show radeontool
Package: radeontool
State: installed
Automatically installed: yes
...
=-=-=
removing one of acpi-support and pm-utils doesn't cause radeontool to
be automatically removed.
=-=-=
$ aptitude -s remove acpi-support
...
The following packages will be REMOVED:
acpi-fakekey{u} acpi-support
...
=-=-=
how do you explain it?
Tao
--
http://huangtao.me/
http://www.google.com/profiles/UniIsland
Reply to: