How to install and uninstall software in Ubuntu

Source: Internet
Author: User

Ubuntu software installation and deletion commands
Install software
Command: APT-Get install softname1 softname2 softname3 ......
Uninstall Software
Command: APT-Get remove softname1 softname2 softname3 ......
Uninstall and clear configurations
Command: APT-Get remove -- purge softname1
Update Software Information Database
Command: APT-Get update
System Upgrade
Command: APT-Get upgrade
Search for software packages
Command: APT-cache search softname1 softname2 softname3 ......

 

Deb software package installation and uninstallation

Install Deb Software Package
Command: dpkg-I XXX. Deb
Delete a software package
Command: dpkg-r XXX. Deb
Delete with configuration file
Command: dpkg-r -- purge XXX. Deb
View software package information
Command: dpkg-Info XXX. Deb
View copy details
Command: dpkg-l XXX. Deb
View installed software packages in the system
Command: dpkg-l
Reconfigure the Software Package

Command: dpkg-reconfigure xxx

 

In many cases, when we use Ubuntu, we download and use the software in the New Software Package Manager. The advantage is that it is easy to manage and update, and there are usually no compatibility issues. However, the problem is that official software sources are generally slow to update, and many software sources have never entered the official source. In this case, you need to download them by yourself.Source codeCompiled.

In fact, it is not difficult to compile the software by yourself. As long as you take a look at the README or install file that comes with the source code package, you can do it. It is generally divided into the following steps: extract the package first, and then enter the decompressed folder, sudo apt-Get build-dep "software name". This step is used to download some documents and tool software required by the compiling environment. As long as the network speed is good, UBUNTU will download and install it later, then:

./Configure

Make

Sudo make install

Through the above steps, you can solve most of the software compilation problems. The difference is that sometimes some configuration parameters need to be used. For details, refer to the README or install file that comes with the source package.

 

Sudo make checkinstall

It will remind you to install the software step by step and generate an installation package in Deb format in the source code folder. Then you can use it to reinstall the software without any need to re-compile it.

 

 

How can we keep Ubuntu fresh? After a lot of software installation and uninstallation, Ubuntu and windows will leave a lot of unused software and configuration files, and how can we clean it up, there are some ways to install additional software to clean up on the Internet. I have tried it and found that Ubuntu does not make it much easier to lose weight, but it is easy to use the built-in Ubuntu method.

 

First open the new software package manager, and you will see it on the left:

 

Installed

Installed (local or outdated)

Not Installed

Uninstalled (residual configuration)

New Content in the software Repository

Select uninstalled (residual configuration). If this option is not selected, it means that your system does not have any residual configuration files. You can delete the configuration files you do not want to retain in the list on the right.

 

When you need to install a software package, the new software package manager starts from/etc/APT/sources. download the required files from the hosts listed in the List, save them to the local software library (/var/Cache/APT/archives/), and start the installation. Local software libraries will continue to expand and occupy a lot of hard disk space. Fortunately, APT provides tools to manage local software libraries: APT-Get's clean method and autoclean method.

 

Apt-Get clean will delete all files except the lock files under the/var/Cache/APT/archives directory and the/var/Cache/APT/archives/partial directory .. So far, when you need to install a software package again, APT will download it again.

 

Apt-Get autoclean only deletes files that do not need to be downloaded again.

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.