# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ceh.securescape.cc/general-settings/apt-package-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
