apt-mark manual has allowed the same functionality in apt since forever and probably inspired apk's copy of it :)