Debian study notes: Debfoster & Deborphan

xiaoxiao2021-03-06  44

I know these two software from Moto, very easy to use, introduce it to you! !

Write this study notes in Moto, I hope to use it for everyone! !

APT-GET is a good tool. Can intelligently install the required software. When installing the software, it will install the software package relying on that software, but when we uninstall this package, the package that is installed to meet the dependence of this package is not unloaded from the system. .

Debfoster and DeborPhan are to solve this problem! Pass through it. We can manage software!

First we have to install it.

# APT-GET Install Debfoster Deborphan

Debfoster is the front end of the APT-GET and DPKG, when you run Debfoster. It will ask you a lot of questions, you have to specify those packages (if you don't know what software is doing, it is best to keep!). If you don't need those software, you will choose N.

For example, we have to install 3DDesktop software, execute the command:

#debfoster 3DDesktop

Then download the software from the Internet and install it as Apt-Get.

Later I found this software is not what I like, I just need to execute:

#debfoster 3DDesktop-

You can delete this software, and those who are not useless will be deleted!

#debfoster 3ddesktop- Reading Package Lists ... Done Building Dependency Tree ... Done The following packages will be REMOVED: 3ddesktop * libglut3 * libimlib2 * libttf2 * libungif4g * 0 upgraded, 0 newly installed, 5 to remove and 1 not upgraded. NEED TO GET 0B of Archives. After unpacking 1715kb disk space will be freed. Do you want to continue? [Y / n]

DEBORPHAN can find out those who are not used (there is no software to rely on it).

#deborphan

Without parameters, it will only search for libs and oldlibs packages.

#Deborphan --All-packages searches all packs. [Color = crimson] # deborphan --all-packages main / base modconf main / sound arts main / net kget main / gnome gnome-system-monitor

Here we can find out that those packages are useless.

Then we can remove it from the system.

#dpkg --Purge Remove Foo

Very easy to use, help Debian to lose weight, it is not difficult.

Some useful parameters:

#debfoster --Show-Keepers

Show current packages set to preserves and not reserved lists

#debfoster --Show-Depends foo

Shows those packages in the current system to use foo

#debfoster --Upgrade foo

If the FOO is selected, the debfoster will not ask if you want to keep it without retention next time.

#Deborpha --SHOW-DEPS FOO

Displays a list of foo dependencies. Including Recommends

#Deborphan --Show-Priority [foo]

Show priority

#deborpha --SHOW-Section

Plus the display result plus that section

For more parameters, please see Man

转载请注明原文地址:https://www.9cbs.com/read-45307.html

New Post(0)