you can toggle learning mode on and off in runtime, simply run aptpac --learning-mode=on to turn it on and aptpac --learning-mode=off to turn it off.
C-edition
There are 2 ways to enable/disable learning mode in the C edition:
1) using the --config flag. the setting is saved in ~/.aptpac/aptpac.config
to enable learning mode: aptpac --config set learn.
to disable learning mode: aptpac --config unset learn
2) You can use the environment variable APTPAC_LEARN to turn it on and off in runtime without having to recompile.
run aptpac like this: APTPAC_LEARN=1 aptpac <command>
add this: export APTPAC_LEARN=1 to your bashrc or equivalent and source it or restart your terminal to have learning mode on until you remove that line or change the value of the variable.
- you need to recompile to toggle it. to turn it on, add -DLEARN=1 to the cmake line. to turn it off (only needed if you are recompiling the same build without re-generating the build files from scratch), add -DLEARN=0.
continuation of #2
Progress so far (will be updated)
bash edition
aptpac --learning-mode=on
to turn it on andaptpac --learning-mode=off
to turn it off.C-edition
There are 2 ways to enable/disable learning mode in the C edition: 1) using the
--config
flag. the setting is saved in~/.aptpac/aptpac.config
aptpac --config set learn
.aptpac --config unset learn
2) You can use the environment variableAPTPAC_LEARN
to turn it on and off in runtime without having to recompile.APTPAC_LEARN=1 aptpac <command>
export APTPAC_LEARN=1
to your bashrc or equivalent and source it or restart your terminal to have learning mode on until you remove that line or change the value of the variable.- you need to recompile to toggle it. to turn it on, add-DLEARN=1
to the cmake line. to turn it off (only needed if you are recompiling the same build without re-generating the build files from scratch), add-DLEARN=0
.