|
- apt - How do I search for available packages from the command-line . . .
I have successfully installed some packages using the command: sudo apt-get install packagename when I have known in advance that those packages are available But how can I search for or get a l
- apt - How to list all installed packages - Ask Ubuntu
I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system How would I do this?
- apt - Contents of a default sources. list or ubuntu. sources (24. 04 and . . .
Ubuntu 24 04 uses a new format for managing sources Sources are stored in separate files within the etc apt sources list d directory, each named with a list or sources extension (example: ondrej-ubuntu-php-noble sources) When you add a PPA source, it usually creates a new file within this directory specific to that PPA
- What is the difference between apt and apt-get? - Ask Ubuntu
The apt commands have been introduced to solve this problem apt consists some of the most widely used features from apt-get, apt-cache and apt-config leaving aside obscure and seldom used features
- apt - What is difference between the options autoclean, autoremove . . .
apt-get has a few options which looks the same to me: autoclean, autoremove and clean What do each of them do?
- apt - How to install updates via command line? - Ask Ubuntu
Use this: sudo apt update # Fetches the list of available updates sudo apt upgrade # Installs some updates; does not remove packages sudo apt full-upgrade # Installs updates; may also remove some packages, if needed sudo apt autoremove # Removes any old packages that are no longer needed Documentation about each apt option can be found in the the manpages for apt These are also available by
- apt - How do I fix the GPG error NO_PUBKEY? - Ask Ubuntu
sudo gpg -a --export <PUBKEY> | sudo apt-key add - sudo apt-get update Note that when you import a key like this using apt-key you are telling the system that you trust the key you're importing to sign software your system will be using Do not do this unless you're sure the key is really the key of the package distributor
- apt - install openjdk 21 - Ask Ubuntu
sudo apt install openjdk-21-jdk It's in the Universe repository, so be sure you have that enabled It wasn't available yet when you asked the question, but it is now If you add a PPA or other non-Ubuntu version of OpenJDK, remember that it's likely to be incompatible with the (supported Ubuntu repository) Ubuntu package
|
|
|