mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
7afb33aee4
* Update a mistake in ifconfig * Add example for a SOCKS proxy in ssh * Add an example for mounting a NFS dir in mount * Add a description for git blame * Add some examples in grep * Add example for specifing an interface in dhclient * Add a description for apt-get install * Add some commands in apt-cache * Add an example of pretty printing jsons using python
16 lines
377 B
Text
16 lines
377 B
Text
# Desc: Allows to update the operating system
|
|
|
|
# To fetch package list
|
|
apt-get update
|
|
|
|
# To download and install updates without installing new package.
|
|
apt-get update
|
|
|
|
# To download and install the updates AND install new necessary packages
|
|
apt-get dist-upgrade
|
|
|
|
# Full command:
|
|
apt-get update && apt-get dist-upgrade
|
|
|
|
# To install a new package(s)
|
|
apt-get install package(s)
|