stottj / Command-Line

0 stars 0 forks source link

Install a package using `apt` or `brew` #17

Closed stottj closed 1 year ago

stottj commented 1 year ago

Summary

Learn the basics of package management by installing a software package using apt on a Debian-based system or brew on a macOS system. This skill is essential for managing software and libraries on Unix-like operating systems.


Description


Learning Tasks

  1. Introduction to Package Management:

    • Learn what package management is and why it's crucial for software maintenance.
  2. Understanding apt and brew:

    • Briefly explore what apt and brew are and how they differ regarding usage and features.
  3. Installing a Package:

    • Walk through the steps to install a software package using apt or brew.
  4. Verifying Installation:

    • Learn how to verify that a package has been successfully installed.
  5. Hands-on Practice:

    • Exercise 1: Use apt or brew to search for a package (e.g., git or curl).
    • Exercise 2: Install the chosen package using apt install <package-name> or brew install <package-name>.
    • Exercise 3: Verify the installation by running a command related to the installed package (e.g., git --version).
  6. Troubleshooting:

    • Discuss common issues that might occur during package installation and how to resolve them.

Learning Goals


Priority

stottj commented 1 year ago

Install a package using apt or brew

Using Homebrew on MacOS

Exercise 1

use brew to search for a package

commands: brew search macdown

Exercise 2

installing MacDown, an open source for Markdown documents

commands: brew install --cask macdown

Exercise 3

for MacOS you should run brew update twice and brew doctor for generic troubleshooting. brew doctor will give the user information on what they should do to fix problems. If this doesnt work then one should create an issue using the logs created when using run brew gist-logs

commands: brew update brew doctor

tupleHunden commented 1 year ago

👍🏻

I have a shell alias for brew to update and upgrade which is helpful when starting the day

alias update = "brew update && brew upgrade && any-other-system-updates-here