chore: added checksum checking tool shasum

This commit is contained in:
Michele Cereda
2023-12-28 22:42:05 +01:00
parent 30cf501a56
commit 655d8eccb3
2 changed files with 43 additions and 5 deletions

View File

@@ -1,11 +1,20 @@
# Homebrew
1. [TL;DR](#tldr)
1. [Configuration](#configuration)
1. [Downgrade an application to a non-managed version](#downgrade-an-application-to-a-non-managed-version)
1. [The easy way](#the-easy-way)
1. [The hard way](#the-hard-way)
1. [Gotchas](#gotchas)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
```sh
# Install/uninstall on OS X.
# Install on OS X.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# Search for formulae.
brew search 'parallel'
@@ -15,9 +24,6 @@ brew search --cask 'gpg'
brew install 'gettext'
brew install --cask 'spotify'
# Uninstall something.
brew uninstall --zap 'keybase'
# Get formulae's dependencies.
brew deps
brew deps --installed 'azure-cli'
@@ -26,17 +32,27 @@ brew deps --tree
# Get information on formulae.
brew info 'sponge'
# List all files installed by formulae.
brew ls -v 'coreutils'
brew ls -v --cask 'firefox'
# Prevent formulae from upgrading.
brew pin 'gnupg2'
# Uninstall something.
brew uninstall --zap 'keybase'
# Add taps.
# Only one at a time.
brew tap 'homebrew/services'
# Manage services.
# Requires the 'homebrew/services' tap.
brew services start 'openssl-osx-ca'
# Bring an installation up to speed from a Brewfile.
brew bundle
brew bundle --global
@@ -45,6 +61,10 @@ brew bundle --file "$HOME/Brewfile" --no-lock
# Dump all installed casks/formulae/images/taps into a Brewfile in the current
# directory.
brew bundle dump
# Uninstall from OS X.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
```
## Configuration

View File

@@ -0,0 +1,18 @@
# Shasum
1. [TL;DR](#tldr)
## TL;DR
```sh
# Install the tools.
brew install 'coreutils'
# Print the checksum of given files.
sha512sum 'path/to/file'
sha1sum 'path/to/file.1' 'path/to/file.N'
# Check files given their checksum and name in one or more files.
sha256sum -c 'expected.sha256'
sha512sum -cw 'expected.1.sha512' 'expected.N.sha512'
```