Add wallet feature to bitcoind (full node) after installation with --disable-wallet
The data directory is independent of the installation. Just recompile with the wallet enabled, install the binary over your existing one, and it'll use the same data directory and all of the data inside of it.