Uninstall Linux source software compiled and installed

 

 

And using the auto-apt checkinstall, using the following command

# Auto-apt and install checkinstall

apt install auto-apt checkinstall

# In the source directory

auto-apt run ./configure
make
checkinstall

This will generate a deb package, uninstalling and reinstalling is very convenient

# Completely uninstall (packagename specific name will prompt completion after checkintall)

dpkg -r packagename

# Deb packages generated by reinstalling

dpkg -i ***.deb

More useful commands

# List installed package file location

dpkg -L packagename

# Check whether the installation was successful

dpkg -l | grep packagename

View Package #

apt list --installed | grep packagename



Guess you like

Origin www.cnblogs.com/lcxiao/p/11444317.html