mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
Merge branch 'master' of https://github.com/yafp/cheat into yafp-master
* 'master' of https://github.com/yafp/cheat: 20151102 - Added 3 more cheats into the new apt cheatsheet 20151102 - Adding a cheatsheet for at (apt vs apt-get)
This commit is contained in:
commit
248f5a0526
1 changed files with 25 additions and 0 deletions
25
cheat/cheatsheets/apt
Normal file
25
cheat/cheatsheets/apt
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Desc: Allows to update the operating system
|
||||||
|
|
||||||
|
# To search a package:
|
||||||
|
apt search package
|
||||||
|
|
||||||
|
# To show package informations:
|
||||||
|
apt show package
|
||||||
|
|
||||||
|
# To fetch package list:
|
||||||
|
apt update
|
||||||
|
|
||||||
|
# To download and install updates without installing new package:
|
||||||
|
apt upgrade
|
||||||
|
|
||||||
|
# To download and install the updates AND install new necessary packages:
|
||||||
|
apt dist-upgrade
|
||||||
|
|
||||||
|
# Full command:
|
||||||
|
apt update && apt dist-upgrade
|
||||||
|
|
||||||
|
# To install a new package(s):
|
||||||
|
apt install package(s)
|
||||||
|
|
||||||
|
# To uninstall package(s)
|
||||||
|
apt remove package(s)
|
Loading…
Reference in a new issue