Hi there.
I do need some help…
I accidentally deleted (time pressure…) the whole “include” dir. via terminal (sudo su …).
How to recover it?
So long!
IOS
PS: Is there something similar to the “Linux Mint” suggestion below?
#install it
sudo apt-get install dlocate
#list the packages
dlocate --package-only /usr/include
#reinstall them
sudo apt-get install --reinstall $(dlocate --package-only /usr/include)
Hi, fregel.doe!
Thank you for the prompt reply.
Actually, I removed firefox (since Im using vivaldi).
As I checked firefox and mozilla, I found and removed:
(1) # rm -r /home/.../.cache/mozilla
(2) # rm -r /usr/include/mozjs-78 (/mozilla)
(3) Accidentally, I pressed "PgUp" and return on # rm -r /usr/include
(should be # ls -l /usr/include).
The goal was to remove unneeded files and applications and provide more space.
How badly do I need the "include"-files?
How to install only the "include"-files the system really need/use?
From what I know - you don’t need them at all.
Except:
when some software you want to install needs to be compiled from source.
That is only the case for AUR packages - but not for all of them.
And it might be needed when you want to compile some software that is not in the AUR.
And /usr/include/linux/… might be needed when you use DKMS to (re)build some kernel modules when the kernel version changes.
@freggel.doe told you how you can reinstall all those packages
so that the /usr/include/… that they provide is restored.
If you don’t do any compiling, you don’t really need all that.
It will “fix itself” over time when new versions (updates) are installed.
There is no way to install only the include files - since they are not packaged separately but are part of each programs package.
… delete a part → reinstall the whole and you’ll get the now missing part back as well
An exception might be the linux header files which are a package of their own.
But as already said: you don’t really need or use any of these if you are not compiling anything from source
so nothing is really broken and in need of fixing in that case.
A rather rare case when accidentally deleting system files does not necessarily lead to immediate breakage.