apt-cache dumpcan be used to see what packages are available officially and their dependencies. Example -
apt-cache dump | grep -i "figlet"gives -
Package: python-pyfiglet
Package: figlet
Depends: figlet (null)
Package: python3-pyfiglet
Depends: python-pyfiglet 0.7.1
Depends: figlet (null)
Depends: python-pyfiglet 0.7.1
Depends: figlet 2.2.1-4
Depends: figlet (null)
Depends: figlet (null)
Depends: php-text-figlet (null)
Package: php-text-figlet
Depends: python3-pyfiglet (null)
Depends: figlet (null)
-
apt-cache dump | grep "Package:" | wc -lto see the number of packages that can be already installed from the repositories. (gives 89628) - You can immediately execute the previous command(s) by
!beginning_few_letters_of_command. Example, if you have entered the following three commands -
apt-cache dump | grep "Package:" | wc -l
find . -name "*conf*"
sudo apt update- Now if you want to run command 1, you can simple do
!apt, similarly for command 2!fiand command 3!sudo. - It seems multiverse and universe are already enabled in the
/etc/apt/sources.list.