11 years ago
The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages.
sudo" command will be followed by a password request. Remember that when you type a password in terminal, you see nothing on screen.
sudo apt-get myspecificcommand
ppa:tualatrix/ppa. To add it to your sources, open a terminal and write this string.
sudo add-apt-repository ppa:tualatrix/ppa
sudo add-apt-repository ppa:your-repo/ppa
sudo apt-get update
upgrade". Please be aware that the overall progress meter will be incorrect as the size of the package files cannot be known in advance.
sudo apt-get upgrade
upgradeis used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that
apt-getknows that new versions of packages are available.
apt-cache search mysoftware
sudo apt-get install mysoftware
sudo apt-get install mysoftware-1 mysoftware-2 mysoftware-3
Basic command is
sudo apt-get remove mysoftware
sudo apt-get purge mysoftware
clean" clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/.
autoclean" clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control.
autoremove" is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed.
sudo apt-get autoclean && sudo apt-get autoremove
The tutorial does not explain how to remove a repository added with add-apt-repository. The --remove option mentioned on the man page for Ubuntu 14.04 (http://manpages.ubuntu.com/manpages/trusty/man1/add-apt-repository.1.html) does not exist in the Mint version of the add-apt-repository command.
It seems the only way is to remove the corresponding file in the /etc/apt/sources.list.d directory:
sudo rm -i /etc/apt/sources.list.d/repository-name*
thanks great info..helps newbiesss...like me
As the capabilities of apt and its derivatives are overwhelming, it is essential to have a comprehensive list of the main use cases — and your tutorial excels at this job.
A little precision though: besides maybe LMDE, in Linux Mint the password you have to enter for sudo is your own, not the one for root.
Clear, concise tutorial with steps and definitions clearly explained for learning or memory refresh. Both newbies and longtime linuxheads can appreciate.
aptitude -v moo
aptitude -vvv moo
aptitude -vvvv moo
(sorry, couldn't resists) :D
simple but helpful!
Hope you don't mind, but I believe this is so useful that I've downloaded a copy for permanent reference. Thank you very much for sharing your expertise in an easy and understandable fashion. One day I also hope to share any knowledge acquired with others.
Thank you! These basic instructions were of great benefit to one who owns and operates several websites, but has no programming experience. Often these basic "how-to"s are overlooked by those who know terminal commands inside and out. Keeping in favorites!
Very good, clear and understandable (and nice format). Thank you.
Very easy to follow. Nicely done and thank you. :)
I think there is no distro at all where you could install software without root password. It linux; not Win not Mac.
It does ask for a password on LMDE when you just use apt. Frankly I didn't want to move and I am relieved not to have to.
"Of course, for security reasons, system will still ask you the root password."
That's a good thing!
I wasn't sure if it would install:
a) To your home directory
b) System wide with a password
c) System wide with no password
I inferred c) from the comment lmade by @remoulder. I'm happy to be corrected.
I'm going to have to try that tonight. If your right and I can install system wide software without sudo and by inference no password, then Mint will never get out of the sand-boxed environment I have it in; if LMDE does it, I'll be off to a distro that enforces good security practices.
In mint it is not necessary to use the -get version nor prefix it with sudo.