Raspberry Pi apt software management tool

Source: Internet
Author: User

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 more information about the package before installing the software:

apt-cache show:apt-cache show slPackage: slVersion: 3.03-17Architecture: armhfMaintainer: Hiroyuki Yamamoto <[email protected]>Installed-Size: 114Depends: libc6 (>= 2.4), libncurses5 (>= 5.5-5~), libtinfo5Homepage: http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.htmlPriority: optionalSection: gamesFilename: pool/main/s/sl/sl_3.03-17_armhf.debSize: 26246SHA256: 42dea9d7c618af8fe9f3c810b3d551102832bf217a5bcdba310f119f62117dfbSHA1: b08039acccecd721fc3e6faf264fe59e56118e74MD5sum: 450b21cc998dc9026313f72b4bd9807bDescription: Correct you if you type `sl' by mistake Sl is a program that can display animations aimed to correct you if you type 'sl' by mistake. SL stands for Steam Locomotive.


Address: http://www.raspberrypi.org/documentation/linux/software/apt.md


Raspberry Pi apt software management tool

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.