Ubuntu system installs software with Deb package

Source: Internet
Author: User
Keywords Ubuntu install software Deb package
Tags aliyun centos deb package debian disk file files files and directories

Unlike Linux distributions like Redhat, Fedora and CentOS, the RPM package is used, http://www.aliyun.com/zixun/aggregation/33836.html "> Debian and Ubuntu use a Deb-formatted package. This section will cover several of the most important issues in mastering its usage.

How to manually install Deb

In general, there are two ways to manually install the Deb file. One is to use the files you have previously downloaded to your hard disk, and the second is to install them using Removable Storage like a CD.

Using downloaded files

Download the Deb file (usually a suffix name ". Deb") to a temporary path, such as/tmp. The second step is to install the package with the dpkg--install command. Here is an example of installing the NDISwrapper utilities package, which is typically installed with the Deb installation command:

root@u-bigboy:~# dpkg--install Ndiswrapper-utils_1.8-0ubuntu2_i386.deb selecting previously deselected package Ndiswrapper-utils. (Reading database ...) 70221 files and directories currently DWORD.) Unpacking ndiswrapper-utils (from Ndiswrapper-utils_1.8-0ubuntu2_i386.deb) ... Setting up Ndiswrapper-utils (1.8-0UBUNTU2) ... root@u-bigboy:~#

With CD

Installing the Deb file with a CD-ROM is similar to the situation in Fedora and Redhat. The difference is that the disc device name is/media/cdrom. The following steps will install the NDISwrapper Deb package that was previously copied to the disc:

1. Insert the disc, check the files under the/media/cdrom path, and then install Deb.

root@u-bigboy:/tmp# mount/media/cdrom-o unhidemount:block Device/dev/hdc is write-protected, mounting read-onlyroot@u-bigboy:/tmp# cd/media/cdromroot@u-bigboy:/media/cdrom# Lsndiswrapper-utils_1.8-ubuntu2_i386.deb root@u-bigboy:/media/cdrom# dpkg--install Ndiswrapper-utils_1.8-ubuntu2_i386.deb selecting previously Package Ndiswrapper-utils. (Reading database ...) 70221 files and directories currently DWORD.) Unpacking ndiswrapper-utils (from Ndiswrapper-utils_1.8-0ubuntu2_i386.deb) ... Setting up Ndiswrapper-utils (1.8-0UBUNTU2) ... root@u-bigboy:~#

2. After the end, eject the disc

root@u-bigboy:/media/cdrom# cd/tmproot@u-bigboy:/tmp# umount/media/cdromroot@u-bigboy:/tmp# Eject cdromroot@u-bigboy:/tmp#

Note: Unlike fedora, using multiple Cd/dvd,ubuntu is released with a CD/DVD disc. The Ubuntu installation process downloads any required packages from the Internet. Therefore, you may find that using apt tool is simple, it can automatically download and install most of the packages you want.

Deb Installation Error

Sometimes the Deb installation doesn't follow your plan, and you need to have the right action at this point. There are some of the most common mistakes you may encounter, and this section will show you how to recover from them.

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.