How can I install a software package in Ubuntu in the format of "Maid ?"?

Source: Internet
Author: User

For example, if I installed the software package ". deb" in Ubuntu, which is in the format of ". deb"
Format Installation File google-chrome-stable.deb double-click or right-click shortcut menu select Synaptic Package
The Manager prompts an error when opening, use the command to install: www.2cto.com dpkg-I google-chrome-stable.deb prompts the lack of a dependent software package, follow the prompts after the installation is complete, Google Chrome browser successfully installed.
In view of the need for developers or linux enthusiasts to install some software on linux systems,
Here, we will summarize the relevant issues to benefit the user. First, we will introduce two simple methods: sudo apt-get install packagename command. If we know the exact name of the software we want to install, we can simply use this command.
To obtain and install software. Apt-get is a linux Command, applicable to deb package-managed operating systems,
For example, ubuntu is mainly used to automatically search, install, upgrade, and uninstall software from the software warehouse on the Internet.
The apt-get command usually needs to be executed by the root user, so it is generally followed by The sudo command. Some common apt command parameters: apt-cache search package apt-cache show package to obtain package information, for example, sudo apt-get install package installation package sudo apt-get install package--reinstall re-installation package sudo apt-get-f install fix installation "-f = -- fix-missing "sudo apt-get remove package Delete package sudo apt-get remove package-purge Delete package, including deleting configuration files and other sudo apt-get update sources www.2cto.com sudo apt-get upgrade update installed packages sudo apt-get dist-upgrade system sudo apt-get dselect-upgrade usage dselect upgrade apt-cache depends package learn how to use apt-cache rdepends package to check which packages depend on sudo apt-get build-dep package to install the relevant compiling environment apt-get source package download the source code sudo apt-get clean & sudo apt-get autoclean of this package to clear useless packages sudo apt-get check and check whether there is any corrupted dependency. Second: the Chinese name of Synaptic Package Manager is the new software Package Manager. It originated from Debian and is a graphical front-end of dpkg commands,
Or a front-end software suite management tool. It can search, install, and install linux system software on the GUI.
Delete, which is equivalent to the apt command in the terminal. The new software package manager has been pre-installed in the recent long-term support version of ubuntu.
You can install synaptic through apt-get install in a system that does not have it installed. To run the new software package, click System> System Management> New Software Package Manager (System> Administration>
Synaptic Package Manager) different versions of Ubuntu may have different ways to access Synaptic,
Synaptic of different versions may be slightly different, but it is similar in general. The usage of Package Manager is also
It is very simple. It is completely a graphical interface. You can find the interface several times at a glance and refer to the help documentation for any problems that cannot be solved.
The disadvantage of this method is that it is relatively slow, especially for some developers. In addition, some of the less popular,
No special software is not necessarily found here. We learn to manually download some software for installation. If you do not install the software in the preceding two ways, you can download the required software and install it manually.
None of the software we downloaded is ". deb ",". bin ",". the rpm "" .tar.gz "format is described as follows: 1. the deb format is Ubuntu installable. you can install it by double-clicking the file in this format,
The same is true for the cmd.exe installation program in windows. Of course, we can also use the dpkg command to install and download it.
For example, www.2cto.com dpkg-I xxx. deb, where the parameter "-I" indicates the meaning of installation. The usage of dpkg is as follows: dpkg [<option>] [parameter] full name of the software, options can be saved, for example, in the preceding example, for more information, see its help documentation (dpkg-h or dpkg -- help ). 2. The '. rpm' format is short for Red Hat Package Manager. This toolkit was first launched by Red Hat,
Later, it was borrowed by other Linux developers. Because it saves a lot of time for Linux users, it is widely used in
Install or delete software in Linux. On Ubuntu, you cannot double-click to run a software package in the ". rpm" format. The general method is
Use alien to convert rpm to deb format before installation. Alien is not installed by default in Ubuntu. Therefore, alien is installed first. The command is sudo apt-get install alien www.2cto.com, and then the alien command is used to convert: sudo alien xxx. rpm generates a xxx with the same name. deb file, and then you can double-click or install it using the dpkg command,
However, this method cannot guarantee 100% success. In addition, you can install the RPM package manager in Ubuntu and run the rpm command
To install and delete software packages in the ". rpm" format. Command usage: rpm parameter software package name common rpm command parameters are as follows:-I installation package;-e removal package-Vl: display the installation progress;-U: upgrade package; -qpl: lists the file information in the RPM software package.-qpi: lists the description of the RPM software package.-qf: queries the RPM software package of the specified file.-Va: verify all RPM software packages and find the missing files.-qa: Find the corresponding file www.2cto.com 3. Sometimes, we will download some ". bin "format file, such as the jdk-6u32-linux-i586.bin installed recently downloaded.
For this type of files, we generally give them the executable attributes. The command is: chmod + x file name, and then directly execute this file in the command line, for example, my current directory contains executable attributes.
Jdk-6u32-linux-i586.bin, directly execute the./jdk-6u32-linux-i586.bin command is acceptable. Of course, there may be some subsequent commands for different software, depending on the specific situation, such as installation
This jdk-6u32-linux-i586.bin needs to execute some additional subsequent commands for related configuration.
This step-by-step execution is based on instructions officially provided by each software. Else"
Generally, it is the source code installation package. For this type of software package, we usually first need to decompress the compressed package through the command,
Then you can compile and install the SDK. Take the .tar.gz format as an example. First we need to run tar-zxvf FileName.tar.gz to decompress the package, and then run it. /configure www.2cto.com for configuration, execute make for compilation, and execute make install for installation. Each command contains detailed parameters to complete complex functions, for more information, see the help documentation for each command. After talking about the installation, let's talk about how to uninstall the software. As time passes, we will inevitably uninstall some software,
Therefore, it is also necessary to master these methods. At the beginning of www.2cto.com, we talked about two simple methods to install the software package. Correspondingly, there are two simple methods to remove the software package: 1. apt command to detach and remove the software package: apt-get remove xxx clear uninstall: uninstall configurations related to software installation: apt-get -- purge remove xxx 2. Easy to use the simple graphical interface of Synaptic Package Manager. Find the software package to be removed and click Remove. There are other methods to Remove the software package, such as www.2cto.com dpkg: Removable: dpkg-r xxx clear: dpkg-P xxx rpm: Although rpm-e xxx has already been very detailed, I believe many people will still encounter many problems when performing these operations,
In this case, we should stay calm and carefully analyze the cause of the error through the output content. For more information, see the corresponding help documentation,
Or ask for help from the Internet. We need to cultivate our ability to analyze and solve problems! Author zyz316919766

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.