[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt-get autoremove 与 aptitude remove 两者行为是否有区别?



=-=-=
SYNOPSIS
       apt-get [-sqdyfmubV] [-o= config_string ] [-c= config_file ]
[-t= { target_release_name | target_release_number_expression |
target_release_codename }] {update | upgrade | dselect-upgrade |
dist-upgrade | install pkg [ { =pkg_version_number |
/target_release_name | /target_release_codename } ] ...  | remove
pkg...  | purge pkg...  | source pkg [ { =pkg_version_number |
/target_release_name | /target_release_codename } ] ...  | build-dep
pkg...  | check | clean | autoclean | autoremove | {-v | --version} |
{-h | --help}}

aptitude [<options>...] {changelog | download | forbid-version | hold
| install | markauto | purge | reinstall | remove | show | unhold |
unmarkauto | build-dep | build-depends} <packages>...
=-=-=

seems like "aptitude remove" needs package names as parameters and
"apt-get autoremove" doesn't

so "apt-get autoremove" can be used to check whether there are
unecessary, automatically installed packages in you system.
while aptitude doesn't have this option since it never leaves unwanted
packages behind.

i bet when you give package name parameters to "apt-get autoremove",
it does exactly the same with "aptitude remove".


Tao
--
http://huangtao.me/
http://www.google.com/profiles/UniIsland

2010/6/21 chenwqin@gmail.com <chenwqin@gmail.com>:
> Hi,
>    大家好
>
>    aptitude remove 会清除安装某些包时为满足依赖要求而自动安装的包,apt-
> get remove则不会这么做,lenny发布后,apt-get 多了个autoremove选项,根据
> 手册和试验的结果看,它也能清除安装某些包时为满足依赖要求而自动安装的包
>
>
> 我现在的疑问是:apt-get autoremove  和aptitude remove在删除时那些自动安
> 装的包的行为是否完全一致?还是有些区别?
>
>
>    谢谢!
>
>
>
> --
> To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 4C1ED5DB.5050605@gmail.com">http://lists.debian.org/[🔎] 4C1ED5DB.5050605@gmail.com
>
>

Reply to: