Raspberry Pi apt software management tool and Raspberry Pi apt Tool

Source: Internet
Author: User

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

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.