mirror of
https://github.com/cheat/cheat.git
synced 2024-12-19 03:05:06 +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
13 lines
341 B
Plaintext
13 lines
341 B
Plaintext
# To search for apt packages:
|
|
apt-cache search "whatever"
|
|
|
|
# To display package records for the named package(s):
|
|
apt-cache show pkg(s)
|
|
|
|
# To display reverse dependencies of a package
|
|
apt-cache rdepends package_name
|
|
|
|
# To display package versions, reverse dependencies and forward dependencies
|
|
# of a package
|
|
apt-cache showpkg package_name
|