Cheat Sheets

Packages - No APT errors

Description

Checks if all APT dependencies are fine (using 'apt-get check')

Solution

apt-get -f install

Check Script: packages-apt-check.sh

#!/bin/bash

output=$(/usr/bin/apt-get check 2>/dev/null) if [ $? -eq 0 ]; then result_ok else result_failed "'apt-get check' reports problems: $output" fi
Comment on Disqus