I installed qemu using apt and got version 2.11. Decided to use a more recent version and downloaded the source for 4.0. Removed apt version with a:
apt remove qemu
successfully compiled version 4.0, but running "--version" results in version 2.11:
$ qemu-system-x86_64 --version
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.13)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
have I removed it wrongly? will I have to compile it again? It took so much time...
Qemu packaging is split up into many pieces for better dependency management. The system emulation binaries are in qemu-system-x86. So if you want to get rid of that binary this is the package to remove.
You can always check which package a binary belongs to with dpkg:
As I'm new to compiling programs, I didn't know I had to
make install
aftermake
to put the binaries in /bin.After running it, I got the 4.0.0 version in my $PATH