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:https://wiki.debian.org/sourceslist)
Deb Http://site.example.com/debian distribution Component1 component2 component3deb-src/http Site.example.com/debian 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://cn.archive.ubuntu.com/ubuntu/precise 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.
Multiverse-software.
Example:
Deb Http://cn.archive.ubuntu.com/ubuntu/precise-backports main restricted universe multiverse
(Ref:https://help.ubuntu.com/community/repositories/ubuntu)
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, Launchpad.net 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
Ppa.launchpad.net_gstreamer-developers_ppa_ubuntu_dists_precise_main_binary-i386_packages
Ppa.launchpad.net_gstreamer-developers_ppa_ubuntu_dists_precise_main_source_sources
Ppa.launchpad.net_gstreamer-developers_ppa_ubuntu_dists_precise_release
Ppa.launchpad.net_gstreamer-developers_ppa_ubuntu_dists_precise_release.gpg
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