Raspberry Pi apt software management tool and Raspberry Pi apt Tool
The easiest way to manage installation, upgrade, and uninstall software is to use APT (Advanced package management tool) On Debian ). If a software package into a Debian package and is applicable to Raspberry Pi's ARM architecture, the package is also compatible with Raspbian.
You need the root user permission to install or uninstall the software package. Therefore, you must be a sudoer user or you must use the root user to log on. For more information, see user management and root user.
To install a new package or update an existing package, you need to connect to the Internet.
Note that installing software will consume your SD card storage space, so you need to pay attention to the disk space and use an SD card of the appropriate size.
Pay attention to the locking operation when installing software. Therefore, you cannot install multiple software at the same time.
SOFTWARE SOURCES)
APT on your Raspberry Pi/Etc/apt/sources. listA software source list is saved in the file. Before installing software, you should useApt-get updateUpdate your package list:
sudo apt-get update
Installing a package with apt (use apt to install A software PACKAGE)
sudo apt-get install tree
After you enter the preceding command, the system prompts you how much storage space is required to install the package and confirms the installation of the package. Enter Y (or press enter directly, because yes is the default operation) to allow installation. You can add-YOption to skip this step:
sudo apt-get install tree -y
Install this software package so that you can use the tree software.
Using an installed package (use INSTALLED software PACKAGE)
Tree is a command tool that provides the visual structure of the current directory and all the content.
Enter the tree to run the tree Command, for example:
tree..├── hello.py├── games│ ├── asteroids.py│ ├── pacman.py│ ├── README.txt│ └── tetris.py
InputMan treeObtain the tree user manual.
InputWhereis treeThe installation location of the tree is displayed:
tree: /usr/bin/tree
Uninstalling a package with apt (use APT to uninstall the PACKAGE)
REMOVE (uninstall)
You can useApt-get removeUninstall a package:
sudo apt-get remove tree
The user will be prompted whether to uninstall. Similarly, add-YYou can skip the validation step.
PURGE (clear)
You can useApt-get purgeCommand to completely remove the package and its related configuration files.
sudo apt-get purge tree
Upgrading existing software (Update installed SOFTWARE)
You can useSudo apt-get updateObtain all updates and useSudo apt-get upgradeInstall all the packages that can be updated. You can useSudo apt-get install somepackage(This is useful when the storage space is insufficient or the download bandwidth is small ).
SEARCHING FOR SOFTWARE)
You can use keywords to query the archive information of a package:
apt-cache search:apt-cache search locomotivesl - Correct you if you type `sl' by mistake
You can also use the following command to query