script for automatic post-installation installation

1 respuesta [Último envío]
GNUbahn
Desconectado/a
se unió: 02/18/2016

Sorry for the nonsense-like title but it should make sense: How can one make a simple script to be run after a fresh installation of trisquel, which will update, upgrade, autoremove and then install a given list of packages?

Also, how should a such script be run (i.e. by which command)?

(we have discussed this issue before, but I can't find the thread)

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

Anything you execute in a terminal (e.g., 'sudo apt update') can be written in a plain text file, one line per command. You can turn that file executable, either through your file manager or with 'chmod +x' in the terminal. To execute it from the terminal, write the path to the file. For instance, if your terminal is opened in the directory containing the file named "post-install", you may execute:
$ ./post-install