Linux basics-install software in Linux
Linux basics-install software in Linux
1. Online installation:
sudo apt-get installYou can install
If you cannot use the Tab key to complete the command after installation, You can execute:
source ~/.zshrc
APT (Advanced Packaging Tool), including apt-get, apt-cache, apt-cdrom and other tools. APT can automatically download, configure, and install software packages in binary or source code format, therefore, it simplifies the process of managing software on Unix systems. Ubuntu is the Debian release. Debian uses the dpkg package management tool, and RedHat and CentOS use rpm.
During the installation, apt-get searches for information about the software in a local software package list, and updates the list with the following command:
sudo apt-get update
Apt-get includes the following tools:
installInstall a software package
updateUpdate the software package list of the local software source from the software source image server
upgradeUpgrade all software packages that can be updated locally
dist-upgradeResolve dependencies and upgrade
removeRemoves installed software packages and dependency packages, but does not contain configuration files.
autoremoveRemove a software package that has been used by another software package but is no longer in use
purgeCompletely removed, including configuration files
cleanRemove the installed software package downloaded to the local device. It is saved in/var/cache/apt/archives/by default/
autocleanRemove Old software packages of installed software
Some parameter descriptions:
-yAutomatically responds to installation or not, often used in scripts
-sSimulated Installation
-qSilent Installation Method. Multiple q or-q =#,# are specified to indicate numbers and silent levels.
-fRepair corrupted Dependencies
-dDownload only without Installation
--reinstallReinstall the software package that has been installed but may have problems
--install-suggestsInstall the recommended software package for APT
Reinstall:
sudo apt-get --reinstall install
Software Upgrade:
# Update software source $ sudo apt-get update # upgrade a software package without dependency problems $ sudo apt-get upgrade # upgrade and resolve dependencies $ sudo apt-get dist-upgrade
Uninstall software:
sudo apt-get remove
Or you can execute:
# Do not retain the configuration information $ sudo apt-get purge your_software # or sudo apt-get -- purge remove # remove unnecessary dependent software packages $ sudo apt-get autoremove
Software search:
sudo apt-cache search softname
Ii. Use dpkg to install the deb software package from the local disk:
Dpkg :( Debian Package)
Parameter description:
-iInstall and develop the deb package
-RAdd the directory name to install all the deb installation packages in the directory.
-rRemove to remove an installed software package
-IDisplay deb package file information
-sShow information about installed software
-SSearch for installed software packages
-LDisplays the directory information of installed software packages.
Iii. Install from binary package:
You only need to extract the Binary Package and put it in the appropriate directory. Then, add the directory containing the executable main program file to the PATH environment variable.
Job: run an animation software bb
In the end, the animation was really cool, and was then decisively downloaded to Ubuntu. Some hacker's personal information should appear in the middle. I also saw Microsoft. Although this kind of animation looks very old and has no aesthetic sense, I can still feel it, the technical feelings of those hackers were awesome.
This article permanently updates the link address: