Manual for apt
Ralf Mardorf
silver.bullet at zoho.com
Sat Sep 3 11:19:33 UTC 2016
On Sat, 3 Sep 2016 10:53:28 +0000, Tony Arnold wrote:
>Yes, I see apt even gives you a warning to this effect if you pipe its
>output through more say.
Ok, I see this too, if I run...
[root at moonstudio ~]# echo $(apt search ubuntustudio|cut -d/ -f1|grep -v [[:upper:]])
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
plymouth-theme-ubuntustudio ubiquity-slideshow-ubuntustudio ubuntustudio-audio ubuntustudio-audio-core ubuntustudio-audio-plugins ubuntustudio-controls ubuntustudio-default-settings ubuntustudio-desktop ubuntustudio-desktop-core ubuntustudio-font-meta ubuntustudio-fonts ubuntustudio-graphics ubuntustudio-icon-theme ubuntustudio-installer ubuntustudio-lightdm-theme ubuntustudio-live ubuntustudio-look ubuntustudio-menu ubuntustudio-photography ubuntustudio-publishing ubuntustudio-video ubuntustudio-wallpapers
...so adding something to a script as...
[root at moonstudio ~]# grep color /usr/local/bin/tool | grep -v printf
color="-o APT::Color=\"0\""
sudo apt $color update && sudo synaptic;;
sudo apt $color update && \
sudo apt $color full-upgrade && \
sudo apt $color autoremove;;
...could be done without risk.
Regards,
Ralf
More information about the ubuntu-users
mailing list