|
- apt - What is difference between the options autoclean, autoremove . . .
When APT is used as a dselect(1) method, clean is run automatically Those who do not use dselect will likely want to run apt-get clean from time to time to free up disk space autoclean : Like clean, autoclean clears out the local repository of retrieved package files
- apt - Package system is broken. How to fix it? - Ask Ubuntu
sudo apt-get clean Above command will clean out the local repository of retrieved package file sudo apt-get install -f Will correct broken dependencies i e -f here stands for “fix broken” sudo dpkg --configure -a will configure all (-a) the packages which haven't been configured yet In the end do run the update command sudo apt-get update
- What is the difference between apt and apt-get? - Ask Ubuntu
apt-get may be considered as lower-level and "back-end", and support other APT-based tools apt is designed for end-users (human) and its output may be changed between versions Note from apt(8): The `apt` command is meant to be pleasant for end users and does not need to be backward compatible like apt-get(8)
- apt - How do I search for available packages from the command-line . . .
apt-file search part_of_package_name | grep another_part_of_name Example of searching for ssh server package if I do not know the name is ssh-server or sshserver or server-ssh etc : apt-file search ssh | grep server Steps to prepare apt-file search for searching It should be done before first usage: sudo apt-get install apt-file sudo apt-file
- What are all the apt command-line commands and options?
While it tries not to break backward compatibility this is not guaranteed either if a change seems beneficial for interactive use All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well apt(8) just changes the default value of some options (see apt conf(5) and specifically the Binary scope)
- What is the difference between dpkg and aptitude apt-get?
(apt or aptitude is fine as well) This is because dpkg is meant to install packages without installing dependent packages Because of that just installing a package with dpkg, may lead to a later problem where dependency resolution may end up with a broken system You should use the command line apt-get or apt (since
- How to downgrade a package via apt-get? - Ask Ubuntu
If you have the version number, or the target release, apt-get supports choosing a particular version or target release More details can be found on manual page of apt-get It can also be accessed from terminal by typing man apt-get sudo apt-get install <package-name>=<package-version-number> OR sudo apt-get -t=<target release> install
- apt - How to list all installed packages - Ask Ubuntu
source: man apt-clone APT-Clone is used by ubiquity (Ubuntu installer) for upgrade process It is much better than the dpkg --get-selections solution because: It preserves all repositories information It keeps track of what packages were automatically installed It allows to repack locally installed DEB files
|
|
|