Skip to content

This script is used to update Linux operating systems (Ubuntu and Debian) with the apt-get command. A basic script, but useful if you are delegating the task to a non-Linux administrator.

License

Notifications You must be signed in to change notification settings

cybiohub/sc_majserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

Majserver

This script is used to update Linux systems (Ubuntu and Debian) with the apt-get command. A very basic script, but which allows you to,

  • Speed up the update by forcing the use of IPv4 only.
  • Generate an execution log for logging.
  • Allows better control for technicians unfamiliar with Linux.
  • Prevents the execution of some tasks if a restart of the system is necessary.

INSTALLATION

Installation procedure


Control

To maintain control over updates in the event of a loss of SSH connection, updates are launched in screen. To resume a session, run this command on the concerned machine:

screen -r majserver

Usage

Usage: majserver.sh [options]

General options:
    -upd,  [update]		# Download package information from all configured sources.
    -upg,  [upgrade]		# Install the newest versions of all packages currently installed.
    -dupg, [dist-upgrade]	# Upgrade the most important packages, at the expense of those deemed less important.
    -rm,   [autoremove]		# Remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
    -cln,  [autoclean]		# Clears out the local repository of retrieved package files.
    -chk,  [check]		# Updates the package cache and checks for broken dependencies.
    -dry,  [list]		# Display a list of upgradable packages.
    -log,  [showlog]		# Show log of the program.
    -ver,  [version]		# Show the program version.

About

This script is used to update Linux operating systems (Ubuntu and Debian) with the apt-get command. A basic script, but useful if you are delegating the task to a non-Linux administrator.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages