Saturday, May 11, 2024
267
rated 0 times [  267] [ 0]  / answers: 1 / hits: 332006  / 3 Years ago, wed, october 27, 2021, 5:11:18

I used source code to build one package such as below:



./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static
make
make install


But unfortunately, i discovered that its the latest version, and has lot of bugs, so i need to remove it/uninstall it. But how can i do so? I tried make clean; make uninstall but still i see it exist:



# pkg-config --list-all | grep Myplugin
myplugin-....
$ ls /usr/lib/myplugin/libXYZ.so
exist....


How do you remove this now?


More From » package-management

 Answers
2

Usually you can just use:



make uninstall


or



sudo make uninstall


if the app was installed as root.



But this will work only if the developer of the package has taken care of making a good uninstall rule.



You can also try to get a look at the steps used to install the software by running:



make -n install


And then try to reverse those steps manually.



In the future to avoid that kind of problems try to use checkinstall instead of make install whenever possible (AFAIK always unless you want to keep both the compiled and a packaged version at the same time). It will create and install a deb file that you can then uninstall using your favorite package manager.



make clean usually cleans the building directories, it doesn't uninstall the package. It's used when you want to be sure that the whole thing is compiled, not just the changed files.


[#41503] Thursday, October 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hreadsoplet

Total Points: 220
Total Questions: 108
Total Answers: 105

Location: Serbia
Member since Fri, Jun 3, 2022
2 Years ago
;