9
rated 0 times
[
9]
[
0]
/ answers: 1 / hits: 5794
/ 2 Years ago, sat, december 11, 2021, 5:45:49
I am running out of disk space on my root partition, and I'm attempting to remove some packages and not others.
More From » dpkg
I am running out of disk space on my root partition, and I'm attempting to remove some packages and not others.
First install debian-goodies by running the below command,
sudo apt-get install debian-goodies
Then run the below command to view the installed packages which has large size,
dpigs -H
By default,it was set to display installed 10 largest packages.You can set the number by -n
parameter.
dpigs -n 20 -H
The above command lists installed largest 20 packages.
$ dpigs -h
Usage: dpigs [options]
Options:
-n, --lines=N
Display the N largest packages on the system (default 10).
-s, --status=status-file
Use status-file instead of the default dpkg status file.
-S, --source
Display the largest source packages of binary packages installed
on the system.
-H, --human-readable
Display package sizes in human-readable format (like ls -lh or du -h)
-h, --help
Display this message.