debian - bunnyamin/bunnix GitHub Wiki
apt install --only-upgrade <package name>
-
Interactive interface
aptitude -
Find package
aptitude search <name> -
Install package
apt install <name> -
Reinstall package
aptitude reinstall <name> -
Install local package
dpkg -i package.deb- If the installation raises dependency errors then run
apt-get install -f.
- If the installation raises dependency errors then run
-
Remove package
apt remove <name> -
Remove package with its dependencies
apt autoremove <name> -
What packages are upgradable?
apt list --upgradable -
apt-get --purge remove <package> -y
$ dpkg -x <file> /extract/to/directory
$ for file_str in ./*; do echo "Processing file: $file_str..."; dpkg -x $file_str ./unpacked;done
For Linux operative systems with no support for dpkg.
ar -xv <deb file>-
xextract -
vverbose --output=<directory>for file_str in ./package.deb; do if [ "$file_str" != "__unpacked__" ]; then mkdir -p ./unpacked/$file_str && cd ./unpacked/$file_str && echo "Processing file: ../../$file_str" && ar -xv ../../$file_str && cd ../..; fi done- Use
unxzto extractxzfiles. - Use
tar -xf <file>to extracttarfiles.