PDA

View Full Version : Nethunter Remove Unneeded Files ( +4 GIB )



rootboy01
2020-04-20, 15:28
He dear Community, @re4son ..

i discovered Nethunter bloat files, but i i dont know which can be remove or not.

here is list:

1) /usr/lib/aarch64-linux-gnu/dri/ *539 MB*

2) /usr/lib/arm-none-eabi/newlib/thumb/ *1.1 GB*

3) /var/cache/apt/archives *1.6 GB* (i used apt autoremove but it seems, it doesnt remove unneeded (already installed .deb files) .debs so we can remove its ? )

4) /usr/share/seclists/Fuzzing/User-Agents/ *363 MB*

5) /usr/lib/gcc/arm-none-eabi/ *487MB*

re4son
2020-04-21, 01:31
Let's not call them bloat files, please. :)
They are standard artefacts of a linux installation and that term makes it sound like they were added for questionable reasons.

I'm sure there are some files that are not essential for NetHunter but installing everything and then deleting files might not be the safest or most efficient approach.
I'd do it the other way around if I were you:

Create a NetHunter installer image with the minimal rootfs. Flash your device and add the tools and applications you need.
If you are in a situation where you have to use
sudo apt autoclean or
sudo apt clean to fit more on your device, then you should uninstall packages you don't need. You don't want to rely on an empty apt cache for your device to work.:eek:

Having said that, if you find safe ways to optimize the storage utilization or on how to get more out of low spec devices, please share.

rootboy01
2020-04-21, 10:12
@re4son thanks.
i removed /var/cache/apt/archives *deb files and no problem.(said before, apt autoremove doesnt removes .deb files)

re4son
2020-04-21, 10:34
That's correct. To remove the retrieved package files from your local repository you use:


sudo apt autoclean

and


sudo apt clean

https://manpages.debian.org/stretch/apt/apt-get.8.en.html