Skip to content

Commit

Permalink
Install aptitude
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 committed Mar 29, 2024
1 parent ef9f788 commit d229a94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if ! command -v apt &> /dev/null; then
fancy_message error "apt could not be found"
exit 1
fi
apt-get install -y -qq sudo wget curl iputils-ping
apt-get install -y -qq sudo wget curl iputils-ping aptitude

echo -e "${PACYELLOW}┌────────────────────────┐\n│ ${PACCYAN}Pacstall Installer${PACYELLOW} │\n└────────────────────────┘${NC}"

Expand Down
11 changes: 9 additions & 2 deletions misc/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export NC='\033[0m'
export UCyan='\033[4;36m'
export BPurple='\033[1;35m'

required_packages=(lsb-release aptitude)

function suggested_solution() {
if [[ -z $PACSTALL_SUPPRESS_SOLUTIONS ]]; then
local inputs=("${@}")
Expand All @@ -53,8 +55,13 @@ sudo chown "$PACSTALL_USER" -R /tmp/pacstall

sudo mkdir -p /usr/share/bash-completion/completions

if ! dpkg -s lsb-release > /dev/null 2>&1; then
sudo apt-get install lsb-release -y
for pkg in "${required_packages[@]}"; do
if ! dpkg -s "${pkg}" > /dev/null 2>&1; then
to_install+=("${pkg}")
fi
done
if ((${#to_install[@]} != 0)); then
sudo apt-get install "${to_install[@]}" -y
fi

# Pre 4.0.0 metadata dir changes
Expand Down

0 comments on commit d229a94

Please sign in to comment.