# APT Package Manager

### Update System

{% tabs %}
{% tab title="Update & Upgrade" %}

```bash
sudo apt update 
sudo apt upgrade
sudo apt dist-upgrade

# Other Options
sudo apt-get update
sudo apt-get upgrade
```

{% endtab %}

{% tab title="Using Aliases" %}
{% code overflow="wrap" %}

```bash
echo "alias sysupdate='sudo apt-get update -y && sudo apt-get upgrade -y'” >> ~/. bashrc

# Refresh Terminal
sysupdate # Run this to update and upgrade the system
```

{% endcode %}
{% endtab %}
{% endtabs %}

### Package Manipulation

{% tabs %}
{% tab title="Installing" %}

```bash
sudo apt install <package> <options>
sudo apt install wget -y
sudo apt install curl wget file -y

# Other Options
sudo apt-get install <package>
```

{% endtab %}

{% tab title="Removing" %}

```bash
# Uninstall
sudo apt remove <package>
sudo apt remove wget

# Remove deprecated/un-needed packages
sudo apt autoremove 
```

{% endtab %}

{% tab title="Fixing Broken Installs" %}

```bash
sudo apt update --fix-broken
```

{% endtab %}
{% endtabs %}
