Install and uninstall Ubuntu Software

Source: Internet
Author: User
Tags file copy

(1) Deb package installation method
Deb is the package management method for Debian Linux, and Ubuntu is a Debian Linux release. Therefore, this software installation method is supported by default. After downloading the software to a deb format, enter this command on the terminal to install:
Sudo dpkg-I *. Deb
(2) Compilation and installation methods
(Tip: before using the compilation and installation, you must first establish the compilation environment and use the following command to create the basic compilation environment: sudo apt-Get install build-essential)
In the world of linux, many software products only provide the source code for you. When you compile and install software, the general source software will use the tar.gz compression file for release. Of course, there are other forms. Obtain the source code compressed file, decompress it to the/tmp directory, enter the/tmp/software directory, and then execute the following three commands:
(1)./configure
(2) Make
(3) sudo make install
In step 1. /configure may prompt that some software cannot be found. For example, if the "libgnome" Development Kit cannot be found, copy the keyword libgnome and open the new software manager, search for the keyword libgnome in it, and you will find the libgnome-related project. Put the libgnome package with the Ubuntu symbol in front. (Note: you also need to install the dev package, but do not install the doc package) install all. /In the configure process, it is OK to install all the missing Development kits. The first step can be passed smoothly, and the second and third steps are basically not a problem.
These are the basic methods for compiling and installing ubuntu!
(3) apt-Get Installation Method
Ubuntu has many software sources in the world. In the system installation article, we have already introduced how to add sources. The basic software installation commands for apt-Get are as follows:
Sudo apt-Get install software name
(4 ). New software package management
Open: System-system management-new software package management. This tool is actually the same as apt. You can search, download, and install the software in the Ubuntu source. The installation method is very simple, I should understand the interface, so I won't introduce it in detail.
(5) Binary Package Installation Method
Many non-open-source commercial software will use this method to release Linux software, such as Google Earth. After obtaining the binary software, put it in the/tmp directory and enter the installation directory under the terminal, run the following command in the installation directory:
./Software name
Then follow the step-by-step prompts to install the software
(6) how to install the RPM package
The RPM package is the most common package management method outside the Deb package, but Ubuntu can also use the RPM software resources ^ _ ^. First, we need to install a rpm-to-Deb Software
Sudo apt-Get install alien
Then you can convert the rpm-format software into the Deb format:
Alien-D *. rpm
Then you can install the software using Deb.
You can also install the RPM package directly without conversion:
Alien-I *. rpm
For more alien usage methods, you can use the-H parameter to view the corresponding instructions.
(7) other installation methods
Other installation methods are usually script installation. For this type of software, you will find files with similar extensions under the software installation directory, such :. sh. py. run, etc. Some even do not even have a suffix name, and there is only one Install file directly. For such software, you can try the following methods to install the most simple method: directly enter in the Software Directory :. /software name * (note that there is a * number, which generally can be configured with all suffix names)
Or: Sh software name. Sh

Or: Python software name. py

2. Common commands for terminal installation and uninstallation

Install the software apt-Get install softname1 softname2 softname3 ......

Uninstall software apt-Get remove softname1 softname2 softname3 ......
Uninstall and clear configuration apt-Get remove -- purge softname1
Update Software Information Database apt-Get update
System Upgrade apt-Get upgrade
Search software package apt-cache search softname1 softname2 softname3 ......
Install Deb Software Package dpkg-I XXX. Deb
Delete the software package dpkg-r XXX. Deb
Delete dpkg-r -- purge XXX. Deb together with the configuration file
View package information dpkg-Info XXX. Deb
View File copy details dpkg-l XXX. Deb
View the installed software package information dpkg-L IN THE SYSTEM
Reconfigure the software package dpkg-reconfigure xxx
64-bit QQ installation example:
Http://download.pchome.net/internet/communications/oicq/download-140334.html
RAR cannot be opened on the terminal and run sudo apt-Get install RAR (so you need to connect to the Internet)
Then open the file to decompress the Deb package.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.