Useful apt (dpkg) regulates

Please upload your much less - recognized, yet valuable apt commands entailing apt - *, dpkg, or aptitude.

2019-12-02 02:59:26
Source Share
Answers: 5

Install apt - documents, after that run sudo apt-file update. You can currently look for documents in plans that you do not also have actually mounted.

Additionally convenient if you require to recognize details concerning plans in various other variations of Ubuntu is rmadison, which remains in the devscripts plan. Give it with a plan name as an argument and also it will certainly inform you what variations of that plan exist in every existing Ubuntu variation, and also what repository area the plan remains in.

Instance :

[[email protected]:~/]$ rmadison cowsay
    cowsay |     3.03-8 | dapper/universe | source, all
    cowsay |     3.03-9 | hardy/universe | source, all
    cowsay |   3.03-9.2 | jaunty/universe | source, all
    cowsay |   3.03-9.2 | karmic/universe | source, all
    cowsay |   3.03-9.2 | lucid/universe | source, all
    cowsay | 3.03+dfsg1-2 | maverick/universe | source, all
    cowsay | 3.03+dfsg1-2 | natty/universe | source, all
2019-12-04 04:45:06

Two that I make use of a whole lot are : -

apt-get autoremove <packagename>

Which will certainly remove the plan and also any kind of extra dependancies, which serves if you attempt an application out, after that determine you do not require it, and also desire the cruft to be gotten rid of additionally.

dpkg -S /path/to/file

Which informs me which package a documents was mounted with.

Ultimately, another.

dpkg -l <packagename> | grep ^ii

Lists plans yet just those that have the standing ii which suggests they are mounted, so it will not show things I've gotten rid of.

If you desire to get the plan name for a documents which was not mounted (dpkg -S, but also for non - mounted plans), install apt-file and also run :

apt-file search /path/to/file
2019-12-04 04:21:00

To get checklist commands begins with 'apt -' you do the adhering to. open an incurable and also type 'apt -' and also push TAB key two times this will certainly detail all commands begins with 'apt - '.

Example result :

apt-add-repository    apt-extracttemplates  apt-key
apt-cache             apt-file              apt-mark
apt-cdrom             apt-ftparchive        apt-sortpkgs
apt-config            apt-get 

To get a thorough details you can examine male web page of that a details command

eg : man apt-get

2019-12-03 04:20:45

View the ChangeLog of a plan

$ aptitude changelog <pkgname>

Example :

$ aptitude changelog sudo
sudo (1.7.0-1ubuntu2.4) karmic-security; urgency=low

  * SECURITY UPDATE: properly handle multiple PATH variables when using
    secure_path in env.c
    - Adapted
    - CVE-2010-1646
2019-12-03 04:20:31
dpkg -i --force-architecture something.i386.deb

For mounting some i386 deborahes on amd64.

2019-12-03 04:09:18