Contents
How do I search for installed packages with apt?
Open the terminal application or log in to the remote server using ssh (e.g. ssh user@sever-name ) Run command apt list –installed to list all installed packages on Ubuntu. To display a list of packages satisfying certain criteria such as show matching apache2 packages, run apt list apache.
How do I rebuild a package in Ubuntu?
Fix broken packages using Ubuntu terminal
- Command 1. sudo apt-get –fix-broken install.
- Command 2.
- Command 3. sudo rm /var/lib/apt/lists/* -vf. sudo apt-get update.
- Command 4. sudo apt-get clean. sudo apt-get autoclean. sudo apt-get autoremove.
- Command 5. sudo dpkg –configure -a. sudo apt-get update.
How do I get a list of broken packages in Ubuntu?
Here are the steps.
- Find your package in /var/lib/dpkg/info , for example using: ls -l /var/lib/dpkg/info | grep
- Move the package folder to another location, like suggested in the blog post I mentioned before.
- Run the following command: sudo dpkg –remove –force-remove-reinstreq
How to get list of installable packages in apt-get?
You can get a (long) list of installable packages by typing apt-get install and then hitting TAB twice (for autocomplete). This is limited because it doesn’t tell you what the packages do (Synaptic or Software Centre would be better for this) but it can be useful when you can’t remember the exact name of a package.
How to install GNOME Documents in apt-get install?
You can install it by typing: sudo apt-get install gnome-documents You can get a (long) list of installable packages by typing apt-get install and then hitting TAB twice (for autocomplete).
How do I install a program in aptitude?
You can try the program ‘aptitude’ from the command line. It is a graphical package manager. Remember to append sudo to the program to do any real installations. ‘sudo aptitude’.
How to build Ubuntu with Debian package build-essential?
Under Debian / Ubuntu package build-essential takes care of everything. If you want to pass custom additonal options to configure, you can set up the DEB_BUILD_OPTIONS environment variable. For instance, if you want pass option called –enable-radio –enable-gui, enter: