Several commands for further apt-get

Source: Internet
Author: User
Tags gstreamer

With Apt-get also very long, did not think about it's realization, recently encountered GStreamer can not put on the problem. Just look at it more.

Apt-get is to download the package from the Internet and install it locally

Manual download of the dpkg package, and then "Dpkg-i package name" can also

But looking for a bag, check dependency too hard, that's what apt-get help to do

From where to download, official URL

In /etc/apt/sources.list, you can see

sudo vi/etc/apt/sources.list

The format of the sources list is as follows (Ref:

Deb Http:// distribution Component1 component2 component3deb-src/http Distribution Component1 Component2 Component3
The beginning Deb represents the compiled package, DES-SRC represents the source code

Distribution represents the release number, for example 12.07 is precise

Deb Http:// main restricted

Component description

Main-officially supported software.
Restricted-supported software that's not available under a completely free license.
Universe-community maintained software, i.e. not officially supported software.


Deb Http:// main restricted universe multiverse


Changed /etc/apt/sources.list to update index file with apt-get update

Updated index file in /var/lib/apt/lists/

Installing PPA

PPA, which represents the Personal package Archives. This is the personal package set.
There are a lot of software for various reasons, can not access the official Ubuntu software warehouse.

To facilitate the use of Ubuntu users, provides a PPA that allows users to build their own repositories. Free to upload software.

The PPA is also used to test some of the software that intends to enter the official Ubuntu warehouse, or the new version number of some software.
The software on the PPA is extremely rich, assuming that the Ubuntu official repository lacks the software you need to go to the PPA to look for it.

sudo add-apt-repository ppa:user/ppa-name

For example, jdk1.6 no longer in index

sudo apt-get install python-software-properties < for installing add-apt-repository >
sudo add-apt-repository Ppa:webupd8team/java
sudo apt-get update

Using the command "sudo apt-cache search jdk", you will find the following content in the results

Oracle-jdk7-installer-oracle JDK7 Installer meta packageoracle-java7-installer-oracle Java (TM) Development Kit (JDK) 7 Oracle-java6-installer-oracle Java (tm) Development Kit (JDK) 6oracle-java8-installer-oracle Java (tm) Development Kit ( JDK) 8oracle-java7-set-default-set Oracle JDK 7 as default Javaoracle-java6-set-default-set Oracle JDK 6 as default Ja Vaoracle-java8-set-default-set Oracle JDK 8 as default Java

Before I could install GStreamer is also resolved by the following command

sudo add-apt-repository ppa:gstreamer-developers/ppa
And then I found out/var/lib/apt/lists/A few more index files


differences in update three commands

Apt-get Update updates the software list.
Apt-get Upgrade Update software.
Apt-get Dist-upgrade Update the system version number.

Query the installable Package

Very often forget the name of the package

With Apt-cache Search < package name > query, the principle should be to do a regular match in the index file

Query the package that is already installed

Using the Dpkg-s command

[Email protected]:~$ dpkg-s Libgstreamer0.10-devlibgstreamer0.10-dev:/usr/share/doc/libgstreamer0.10-dev/ Copyrightlibgstreamer0.10-dev:/usr/share/doc/libgstreamer0.10-dev/readme.gzlibgstreamer0.10-dev:/usr/share/doc /libgstreamer0.10-devlibgstreamer0.10-dev:/usr/share/doc/libgstreamer0.10-dev/news.gzlibgstreamer0.10-dev:/usr /share/doc/libgstreamer0.10-dev/readme. Debianlibgstreamer0.10-dev:/usr/share/doc/libgstreamer0.10-dev/changelog. Debian.gzlibgstreamer0.10-dev:/usr/share/doc/libgstreamer0.10-dev/authors

Several commands for further apt-get

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: 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.