Build from Source: The Toolchain, Source Repository, User Privilege, Build Directory, Example, Download Source, Build Source, Examine Directory, Install Result
Developer Script: debcheckout, Build Dependency, Build Package, Lintian, Source Compile, debi, Deb Checksums, Show Source
Conclusion
Group
I cannot find any reference about group in APT.
Task
The closest concept about group in APT is,
by using task.
Now you can install. Note the additional prefix task-.
More complete information provided in manual.
Package More
More about Package, than just IRSIF.
Change Log
Or:
Package Policy
We can examine the policy too.
Almost equal to:
There is no aptitude policy this time.
“ This aptitude does not have Super Cow Powers. “
However there is aptitude versions.
We will discuss policy later.
Aptitude
aptitude provide text based user interface.
Dselect
There are alternative text based user interface as well called dselect.
Interrupted Process
Sometimes DPKG interrupted, for some reason such as,
I have to immediately turn off my notebook or stuff.
You can continue with this command.
Search Files
This looks like list files command, but very different task.
This command looking for any package that match the corresponding search.
Or
As you can see, it found in both ncdu and fish package.
dlocate
Alternatively
Hold Package
APT can lock package using either hold or pinning.
Building Example
Suppose you want to do system upgrade,
but you do not want to upgrade certain package.
There is a good reason for these,
such as keeping old driver,
because the latest has a issue or such reason.
Or maybe we want to keep our current beloved newly compiled package
that equipped with super duper specific configuration parameter optimization.
Consider change sources.list repository,
from stretch/stable to testing.
We need an example package that we can hold as a guinea pig example.
We can achieveed this using update
and upgrade or list --upgradable .
And the winner is apt and aptitude*
as our guinea pig locking example.
Mark Hold
We can hold package easily using APT.
By using apt-mark hold.
Note that there is no apt hold.
Now apt will be ignored when upgrade.
Pinning
Youcan also lock by Pinning using negative value.
Consider make a new apt file
in /etc/apt/preferences.d
apt won’t even shown up in upgradable list.
Example done successfully.
Guinea pig is alive.
Do not forget to unpin.
I personally used this method to prevent my sis671 driver
to be updated for almost one and a half year.
Finally, the new driver works, so I do not pin this driver anymore.
System Wide
System Wide Information
Cache Statistics
There is this stats command
to dump the system wide information.
List Packages
There is this dumpavail
and dump command
with long output to list packages
Or just package names if you wish.
Listing packages handled by package manager,
can be achieved by apt-cache pkgnames.
APT Config
Verify
Verify integrity of package database, such as dependencies.
History
This is most the forgotten part of package management,
although it is not uncommon to notice messages.
The Log File
There are few log files.
/var/log/dpkg.log
/var/log/apt/history.log
/var/log/apt/term.log
/var/log/aptitude
less or more is a good tool to read log file.
Most likely you want the tail, latest transaction,
at the bottom of the recorded event.
Here is another
Clean Up
Keep your system neat and tidy.
Clean
APT as default keep downloaded package.
Package Cache
/var/cache/apt/archives/ * .deb
You can clean this directory by using either
Note that we do not need to do clean up with docker
because of these rules.
Unused Dependency Removal
Many times we remove package,
and the dependency packages left in the system.
We can clean up by utilize apt-get autoremove.
Almost equal to:
There is no aptitude autoremove this time.
“ This aptitude does not have Super Cow Powers. “
Orphan
Quote from the manual,
deborphanfinds packages that have no packages depending on them.
This is different with autoremove.
What’s Next
There are still, repository topic and building from source.
Consider finish reading [ Part Three ].