Home Operation and Maintenance Linux Operation and Maintenance How to install Debian in linux system

How to install Debian in linux system

May 18, 2023 pm 07:16 PM
linux debian

Debian Introduction

Debian in a broad sense refers to a cooperative organization dedicated to creating free operating systems and their works. Since the Linux macrokernel is the main kernel branch of the Debian project, and most of the basic tools in the operating system created by Debian developers come from the GNU project, "Debian" often refers to Debian GNU/Linux.

Unofficial kernel branches include Debian GNU/Hurd (Hurd microkernel), which only supports x86, Dyson (OpenSolaris hybrid kernel), which only supports amd64, etc. These unofficial forks have some serious problems and lack of practicality. For example, Hurd's microkernel technology is immature, and Dyson's basic functions are not yet complete.

1. Software installation method

1) APT mode

A. Conventional installation: apt-get install softname 1 softname 2...;

B. Repair and installation: apt-get-f install software name 1 software name 2. (-f Atemp to correct broken dependencies)

C. Reinstall: apt-get- Reinstall the installation software name 1 software name 2.

2)dpkg mode

Normal installation: dpkg -i package_name.deb

3)Source code installation (.tar, tar.bz2, tar.bz2, tar.z)

First decompress the source code compression package, and then use the tar command to complete

A.xx.tar.gz

B .Solve xx.tar.Z:tar -zxvf xx.tar.Z

C.Solve xx.tgz:tar -zxvf xx.tgz

D.Understand xx . bz2:bunzi2xx . bz2.

E. Understand xx.tar: Tarf xx.tar

Then enter the extracted directory. It is recommended to read the README and other description files first, because there may be differences between different source code packages or precompiled packages at this time. Then it is recommended to use ls -F - color or ls -F command (actually I only need the l command) to check the executable file, which will be marked with * at the end.

Generally executed in order. /configure

Do

sudo make installation

The installation is completed.

2. How to uninstall the software package

1) APT mode

(1) Removable uninstallation: apt-get remove softname 1 softname 2 .(Delete the package, which means install when there is a package at the end of the package)

(2) Clear uninstall: apt-get-purge delete software name 1 software name 2. (clear the configuration at the same time)

Clear uninstall: apt-get clear software name 1 software name 2. (Same as above, also clear configuration files)

2) dpkg mode

(1) Removable uninstall: dpkg -r pkg1 pkg2.

(2) Clear: dpkg-P pkg 1 pkg 2;

3. Other commands

apt- Cache search#-(Package search package)

Apt-apt-cache show #-(Package gets information about the package, such as description, size, version, etc.)

Apt-get install #-(Package installation package)

Apt-get install #-(Package-reinstall installation package)

Apt-get -f install #-(Force installation, '- f=- fix-missing 'Install as a repair.)

Apt-getremove #-(Package to remove the package)

Apt-getremove-purge #-(Package removes the package, including deleting configuration files, etc. )

Apt-get autoremove-purge #-(Package delete package and its dependent package configuration files, etc. (Only applicable to 6.10, highly recommended))

apt-getupdate #-Update Source

Update installed packages

Upgrade system

apt-get dselect-upgrade#-use ds select-upgrade

apt-cache dependencies #-(Package understands usage dependencies)

apt-cache depends #-(Package knows a specific dependency, just look at which packages depend on this package.)

Apt- getbuild-dep #-(Compilation environment related to package installation)

apt-get source code#-(pack)

e Download the source code of the package)
apt-get clean && apt-get autoclean # --------Clean the archive of downloaded files && Only clean outdated packages
apt-get check #-------Check whether there are damaged dependencies
dpkg - S filename -----Find which software package filename belongs to
apt-file search filename -----Find which software package filename belongs to
apt-file list packagename -----List the software packages Content
apt-file update --Update the database of apt-file

dpkg --info "Software package name" --List the package name after unpacking the software package.
dpkg -l --List all packages in the current system. Can be used with the parameter less to view in split screen. (Similar to rpm -qa)
dpkg -l |grep -i "Software package name" --View the system and The package associated with "package name".
dpkg -s Query the detailed information of the installed package.
dpkg -L Query the installation location of the installed software package in the system. (Similar to rpm -ql )
dpkg -S Query which software package a certain file in the system belongs to. (Similar to rpm -qf)
dpkg -I Query the detailed information of the deb package, and check whether it is used after downloading a software package to the local Install (take a look).
dpkg -i Manually install the software package (cannot solve the dependency problem before the software package). If you encounter software dependency problems when installing a certain software package, you can use apt-get -f install solves the problem of reliability.
dpkg -r uninstalls the software package. It is not a complete uninstall, and its configuration file still exists.
dpkg -P uninstalls all (but it still cannot solve the dependencies of the software package) Problem)
dpkg -reconfigure Reconfigure

apt-get install downloads the software package and all dependent packages, and installs or upgrades the package at the same time. If a package has the hold (stop flag) set, it will be set aside (that is, it will not be upgraded).
apt-get remove [--purge] Remove and any other packages that depend on this package. - -purge indicates that this package should be completely purged.
apt-get update upgrades the package list from the Debian mirror. If you want to install any software for the day, run it at least once a day, and every time you modify /etc/ apt/sources.list, must be executed.
apt-get upgrade [-u] Upgrade all installed packages to the latest available version. New packages will not be installed or old packages will be removed. If a package changes its dependencies If a new package needs to be installed, it will not be upgraded, but will be marked as hold.
apt-get update will not upgrade the package marked as hold.
apt-get dist-upgrade [ -u] Similar to apt-get upgrade, except that dist-upgrade will install and remove packages to satisfy dependencies. Therefore, it is dangerous.
apt-cache search In the package name and description, search for files containing xxx of software packages.
apt-cache show displays a complete description of a software package.
apt-cache showpkg displays more details of a software package and its relationship with other packages.

The above is the detailed content of How to install Debian in linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1269
29
C# Tutorial
1249
24
Linux Architecture: Unveiling the 5 Basic Components Linux Architecture: Unveiling the 5 Basic Components Apr 20, 2025 am 12:04 AM

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

How to check the warehouse address of git How to check the warehouse address of git Apr 17, 2025 pm 01:54 PM

To view the Git repository address, perform the following steps: 1. Open the command line and navigate to the repository directory; 2. Run the "git remote -v" command; 3. View the repository name in the output and its corresponding address.

vscode Previous Next Shortcut Key vscode Previous Next Shortcut Key Apr 15, 2025 pm 10:51 PM

VS Code One-step/Next step shortcut key usage: One-step (backward): Windows/Linux: Ctrl ←; macOS: Cmd ←Next step (forward): Windows/Linux: Ctrl →; macOS: Cmd →

How to run java code in notepad How to run java code in notepad Apr 16, 2025 pm 07:39 PM

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

See all articles