Apt-Get build-Dep

Source: Internet
Author: User
Today, a netizen's signature file says: "Debian
Just like opening a supermarket at home.
Apt-get ". I think it's so appropriate ~
Apt-get in Ubuntu has a build-dep parameter. The manual says:
Build-dep causes apt-get to install/remove packages in an attempt
Satisfy the build dependencies for a source package.

The build-dep parameter is used to search, download, and install the link package required for source code compilation.
To build an environment for compiling software, you can understand it as follows: for example, if we want to manually compile Pidgin, you can configure the software packages used in the compilation process in advance.
For example:
Sudo apt-Get build-dep pidgin

Reading the package list... Complete
Analyzing the dependency tree of the software package... Complete
The following [new] software packages will be installed:
Autoconf autotools-dev libdb4.2-dev libexpat1-dev libldap2-dev libpcre3-dev
Libssl-dev libtool M4 zlib1g-dev
A total of 0 software packages have been upgraded, 10 new software packages have been installed, 0 software packages need to be uninstalled, 0
Software has not been upgraded.
Download the software package of 4869kb/4979kb.
After decompression, 15.1 MB of extra space is consumed.
Do you want to continue? [Y/n]

This makes it clearer than FreeBSD's port installation.

Because there are many link packages.
If you want to uninstall the package in the future, but forget the name of the package,
You can make a record in advance.
Apt-Get build-dep pidgin | tee pidgin-b-d.log
In this way, we will not forget.

How to uninstall the apt-Get build-dep package?
A:
Sudo apt-Get remove ***
Associated packages can be used
Sudo apt-Get autoremove
Uninstall

If you do not want to retain XXXX-Dev, use dpkg-L | grep Dev to check which of the following operations do not need to be deleted.
You can also write down the build-dep package, for example
Apt-Get build-dep mplayer | tee mplayer-b-d.log
If pbuilder is used, it will save a lot of trouble.

In addition:
# Apt-Get install deborphan
Install this package to help you find out the orphan package in the system
# Deborphan
Execute it to list orphan software packages in the system
Xx
Xxxx
XXXXX
# Apt-Get remove -- purge XX XXXX XXXXX
Uninstalling all listed orphan software packages

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.