← 返回命令列表

Linux command

deborphan 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

deborphan

Example

deborphan --all-packages

Example

deborphan --guess-all

Example

deborphan -n

Remove orphans

deborphan | xargs apt-get -y remove --purge

Example

deborphan -sz

说明

deborphan finds orphaned packages on Debian-based systems. Orphaned packages are typically libraries that were installed as dependencies but are no longer required by any installed package. By default, it checks only packages in the "libs" and "oldlibs" sections. Use -a to check all sections.

参数

-a, --all-packages
Check all packages, not just libs/oldlibs sections
--guess-all
Enable all heuristics to find packages with library-like names in other sections
-n, --nice-mode
Show packages that are only recommended or suggested, not hard-depended upon
-H, --show-section
Show the section of each package
-s _section_
Check only the specified section (can be used multiple times)
-z, --show-size
Show installed size of each package
-d, --show-deps
Show packages that depend on the orphan
-P, --show-priority
Show priority of each package
--no-show-section
Don't show section (default)
-p _file_, --status-file _file_
Use alternate status file instead of /var/lib/dpkg/status

FAQ

What is the deborphan command used for?

deborphan finds orphaned packages on Debian-based systems. Orphaned packages are typically libraries that were installed as dependencies but are no longer required by any installed package. By default, it checks only packages in the "libs" and "oldlibs" sections. Use -a to check all sections.

How do I run a basic deborphan example?

Run `deborphan` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all-packages do in deborphan?

Check all packages, not just libs/oldlibs sections