I've got different versions of the Libnet library installed in different locations on the same system:
whereis libnet libnet: /usr/lib/libnet.la /usr/lib/libnet.a /usr/lib/libnet.so /usr/local/lib/libnet.la /usr/local/lib/libnet.a /usr/local/lib/libnet.so /usr/include/libnet.h /usr/include/libnet /usr/man/man3/libnet.3
I have some problems with compiling a program that depends on these libnet libraries so I want to remove the "usr/local/...."-ones. Can you tell me how to do that, i.e, when I whereis libnet on the command line I want to not see the "/usr/local/..." references ?!