[Linux Basic] How to install & uninstall software on Linux

RPM package

This kind of software package is like the EXE installation file of Windows. Various files have been compiled and packaged. Which file should be placed in which folder is specified. Installation is very convenient. In the graphical interface, you only need double-click to install automatically.

How to uninstall

  1. Open a Shell terminal
  2. It is best to determine the full name of the software before uninstalling. Find RPM package software: rpm -qa package_name *
  3. After finding the software, the full name of the software is displayed. Execute the uninstall command: rpm -e firefox-71.0.0
Source code packages in tar.gz (bz or bz2, etc.) file
These packages are all source programs and have not been compiled. You need to compile before installing it. The installation method is:
  1. Open a Shell terminal
  2. Use the cd command to enter the directory where the source code archive is located.
  3. Extract the file according to the type of the compressed package
    tar -zxvf ****.tar.gz
    tar -jxvf ****.tar.bz
  4. Enter the unzipped directory with the cd command
  5. Enter the command to compile the file: ./configure
  6. Run the command: make
  7. Run the command: make install
How to uninstall
  1. Use the cd command to enter the compiled software directory, which is the directory during installation
  2. Run the command make uninstall
Installation package in bin execute file
This package is similar to the RPM package and is relatively easy to install
  1. Open a Shell terminal
  2. Use the cd command to go to the directory where the source code archive is located
  3. Add executable attributes to the file: chmod + x  package_name.bin
  4. Execute the command: ./package_name.bin to run
How to uninstall: delete the package_name.bin file.
  1. Open a Shell terminal
  2. Use the cd command to go to the directory where the source code archive is located
  3. Execute the command: rm package_name.bin