Linux software Manager (how to use Software Manager to manage software)

Source: Internet
Author: User

    1. Most of our Linux system is a Linux manufacturer's system, so these vendors can compile some software to provide users to download, the user after downloading can be installed directly, thus eliminating the compilation of the source code and the process of various problems. At this point we can use the appropriate software manager to operate the software (download, install, delete).
      We use Linux vendors ' systems, that is, our systems are the same as their systems, so the software that they compile is of course available to us.
      When installing the software, you can add some information about the software, new database, then you can uninstall, update and verification and other related operations. (similar to add or Remove Programs under Windows)

Two common software management mechanisms: RPM (RedHat Package manager) and dpkg

     distribution代表       软件管理机制           使用命令        在线升级机制(命令)(可以用来解决依赖问题)     RedHat/Fedora              RPM               rpm,rpmbuild              YUM(yum)     Debian/Ubuntu              DPKG              dpkg                       APT(apt-get)
  1. The RPM mechanism used by publishers such as RedHat, Fedora, Centos, SuSE, Debian, b2d, Ubuntu (which is derived from Debian, so it can be used in Debian's intended mechanism) is dpkg.
    Horizontal comparison: rpm/dpkg cannot be used to resolve package dependencies for installing, uninstalling, and updating *.rpm 或者 *.ded files

  2. Rpm:redhat Package Manager,
    A set of management mechanisms for installing software in a database record mode.
    One of the most important features of RPM is that the software that will be installed is first compiled and packaged into an RPM-mechanism installation package, which records the software's dependent software through the default database in the packaged software.
    Advantages:
    -it has been compiled and packaged, so the software is easy to transfer and install. (eliminates the hassle of compiling the source code)
    -Software information has been recorded in the database for easy query, upgrade, uninstall and other operations.
    Disadvantages:
    -The RPM file is already a compiled file, so the data cannot be modified. The software can only be installed in the original default environment (Hardware and operating system), that is, your host system should be the same as the host environment to establish the software.
    -Therefore, a publisher's RPM file cannot be used on a different publisher's system. For example, Redhat's RPM cannot be installed directly on SuSE. Also, it is possible that the RPM packages between different versions of the same publisher are incompatible, for example, centos4.x RPM packages cannot be applied directly on centos5.x
    Summary: To use the same RPM package is best done: 1, the same system's publisher's RPM 2, the same publisher's system version of the best is the same 3, preferably a system of exactly the same

    • The installation environment of the software must be the same as the environment of the machine where the software was compiled.
    • Need to meet dependencies
    • In particular, you can not remove the lowest level of software, otherwise it may cause system problems
  3. Apt-get:
    [Email protected]:~ $sudo apt-get Install PackageName #这里是安装packagename这个软件, when using this command, the system will go to "download source" File to get the download source address and then go to the designated place to download the software

  4. Several commands:
    -DBKG: Here is a detailed description of the 15 uses of dbkg
    -Dbkg-i PackageName #安装或者更新某个软件, if the package is not downloaded then it will be saved, so you can download it using the wget command first. Deb Software

      wget http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_11.2.202.228-0maverick1_amd64.deb -O flashplugin.deb

        -Rename the downloaded package to Flashplugin.deb, then use sudo dpkg-i flashplugin.deb to install the software-[Flashplugin.deb address] (Http://archi ve.canonical.com/pool/partner/a/adobe-flashplugin/)-dpkg-l #列出所有安装的软件-dpkg-r ' Packagename_without_.deb ' #卸载软件软件, the software name here without suffix-dpkg-r--install directory/#安装direcory目录下的所有的 *.deb software When prompted to have a dependency error: apt-get-f- Y install, then run Dpkg-i *.deb for installation-Apt-get:[apt-get introduction and usage] (http://www.tecmint.com/useful-basic-commands-of-apt-get- and-apt-cache-for-package-management/)-sudo apt-get install packagename1 packagename2 #安装或者升级一个或多个软件-'  sudo apt-get install ' *name* ' #使用通配符安装软件-sudo apt-get install packagename--only-upgrade #指定的软件升级-sudo        Apt-get Install PackageName--no-upgrade #不升级已经安装的软件-sudo apt-get Install Vsftpd=2.5.3-3ubuntu #安装指定版本的软件 -sudo apt-get remove packagename #移除指定的软件且不删除其配置文件-sudo apt-get purge PackageName #移除指定文件且删除其配置文件, completely removed Up this file-sudo apt-Get remove--purge packagename #跟上面的命令一样-sudo apt-get--download-only source vsftpd #只下载指定软件的源码-sudo Apt -get--compile Source Goaccess #下载, unzip, compile source one go-sudo apt-get source vsftpd #下载并解压一个包-sudo apt-get Downloa D nethogs #只下载不安装-sudo apt-get upgrade #升级所有已经安装的软件-sudo Apt-cache pkgnames# list all available software original link: http://b log.csdn.net/u010378878/article/details/51675506

Linux software Manager (how to use Software Manager to manage software)

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.