Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How debian installs the software package

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to install software packages in debian". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Let's first introduce the environment:

Virtual machine: debian7.2.0

Host: Win7

Because sometimes you need to install the software package offline if you can't connect to the Internet, you can download several DVD images listed on the debian official website, mainly DVD1, so that you don't have to connect to the Internet every time you install the software.

Here is the DVD image I downloaded from Debian's official website:

Debian-7.2.0-i386-DVD-1

Debian-7.2.0-i386-DVD-2

Debian-7.2.0-i386-DVD-3

There is a README.txt in each DVD, with the following instructions:

About This Disc

=

This disc is labeled

Debian GNU/Linux 7.2.0 "Wheezy"-Official i386 DVD Binary-1

20131012-12:56

Which means that this disc is number 1 of a set of 10 discs It

Contains programs ("binaries") for `i386' computers.

The programs on the Binary discs are ordered by popularity. The

Binary-1 disc contains the most popular programs and the installation

Tools; it is possible to install and run Debian with only the Binary-1

Disc. The other discs, up to Binary-10, contain mostly

Special-interest programs.

The Release Notes for "wheezy" are available on the Debian web site.

There is an installation manual for Debian in DVD1. The path to the manual in Chinese is doc/manual/zh_CN/, and there is also an introduction to DVD installation.

The packages included in CD (and DVD) are sorted in order of popularity. In other words, the first CD is the most commonly used software, while the last CD contains software that few people use.

It also means that buying or downloading and burning all CD is a waste, because you won't use most CDs at all. In most cases, you only need to use the first three to eight CD, and then install other packages you want to use from the network image. The situation with DVD is similar: just one, or the first two DVD, will meet most of your requirements.

As a rule of thumb, a common desktop installation (using a GNOME desktop environment) requires only the first three CD. Additional CD is required for other desktop environments (KDE or Xfce). The first DVD can easily satisfy all three desktop environments.

The installation begins below:

First add three virtual optical drives to the virtual machine and mount the three DVD images you just downloaded

As shown in the following figure: (note: since Debian7.2 has been installed, I put DVD1 on the second, the first IDE controller slave channel, and the DVD2 on the first IDE controller main channel, in order to prevent automatic access to the Debian installation interface at every startup, and there are many software packages in DVD1.)

/ etc/fstab needs to be modified due to the addition of three virtual optical drives

Modified to:

At the same time, create a new directory cdrom2 under the / media directory. After reboot, the system automatically mounts DVD2 to / media/cdrom0, DVD1 to / media/cdrom1, and DVD3 to / media/cdrom2, as shown below:

After mounting, you can modify / etc/apt/sources.list by adding the following:

If you do not know what is written after the path to execute apt-cdrom add, the system will automatically search for cdrom and automatically fill in the / etc/apt/sources.list file, you can see how it is written, using apt-cdrom add this method, there will be the problem of unable to find the package.

Finally, you can execute apt-get update.

This is the end of how debian installs software packages. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report