Clean Up
by vw98008 from LinuxQuestions.org on (#6CECJ)
After I try to update a software, a message,
Quote:
frequently pops up.
With the command "df", I see
PHP Code:Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/sda280054392760052640100%/
It has not change after I remove all files in the download directory as well as removing another directory.
The command also yields
PHP Code:Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/loop11196801196800100%/snap/core/14784
...
/dev/loop81210881210880100%/snap/core/15419
I ask Bard how to do a disk clean up. It gives me 3 version answers. Two of them let me run
PHP Code:dpkg-l
or
PHP Code:sudoaptlist--installed
and go through the output list and remove any packages I don't need.
A problem is that I don't know the majority of those packages or how they are used or aren't used in the system. For example, there are about 50 python packages on the list, but I don't know whether Deepin or Debian need any of those Python package at all or not. I didn't install them at least not directly
The other version says that I need to run
PHP Code:sudoapt-getclean
and
PHP Code:sudoapt-getautoremove
None of them help in this case, however.
How to do the clean up then?
I might have another option other than disk clean up. The PC is a dual boot. I might be able to expend the Linux partition, even erase the Windows installation partition. When I try to change the partition, I get a warning message saying the action might lead to the machine won't boot up. How to do change a partition with less chance of damaging the boot?
Quote:
Insufficient disk space, please clean up in time! |
With the command "df", I see
PHP Code:Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/sda280054392760052640100%/
It has not change after I remove all files in the download directory as well as removing another directory.
The command also yields
PHP Code:Filesystem1K-blocksUsedAvailableUse%Mountedon
/dev/loop11196801196800100%/snap/core/14784
...
/dev/loop81210881210880100%/snap/core/15419
I ask Bard how to do a disk clean up. It gives me 3 version answers. Two of them let me run
PHP Code:dpkg-l
or
PHP Code:sudoaptlist--installed
and go through the output list and remove any packages I don't need.
A problem is that I don't know the majority of those packages or how they are used or aren't used in the system. For example, there are about 50 python packages on the list, but I don't know whether Deepin or Debian need any of those Python package at all or not. I didn't install them at least not directly
The other version says that I need to run
PHP Code:sudoapt-getclean
and
PHP Code:sudoapt-getautoremove
None of them help in this case, however.
How to do the clean up then?
I might have another option other than disk clean up. The PC is a dual boot. I might be able to expend the Linux partition, even erase the Windows installation partition. When I try to change the partition, I get a warning message saying the action might lead to the machine won't boot up. How to do change a partition with less chance of damaging the boot?