I think the best way for Algeria is to follow Turkish model and start producing more locally made equipment, armed vehicles, planes etc.
Turkey started with JVs and manufacturing under licence, and now it's getting more and more independent as many imported components are being produced locally...