linux - execute some action after specific shell command => ( Track installed packages ) -



linux - execute some action after specific shell command => ( Track installed packages ) -

i installed fresh new linux distro, , track new packages install.

hence, each time run sudo apt-get install packagename, log specific bundle maintain track of configuration.

then, new installation, write simple script take whether or not want install old packages.

any of have solution ? maybe simple track file installed packages ? sure there many dependencies, , not basic ones ?

the thought watch permanently shell entry , save matching string ( bundle name ) maybe not best solution.

thanks in advance help.

you create script serves alias install command remembers each newly installed package, maybe appending each entry file somewhere. script have alternative reinstall packages if selected, iterate through each remembered bundle , prompt if install it. if backup script , file of installed packages on clean machine re-create files , reinstall desired packages.

alternatively investigate using provisioning tools such puppet, chef, salt, etc. provision system. might improve approach.

linux shell install.packages

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -