Git Product home page Git Product logo

armoghans-organization / security-patch-manager Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 330 KB

This bash script allows to to check and apply system security updates for Debian Based Distros..

Home Page: https://armoghan-blogs-2.netlify.app/posts/security-patch-manager/

License: MIT License

Shell 91.18% Roff 8.82%
bash bash-script bash-scripting debian debian-linux lahore-garrison-university lgu linux project shell-script shell-scripting university university-project

security-patch-manager's Introduction

Security-Patch-Manager ๐Ÿš€


GitHub Code Size Codacy Security Scan

Script_Preview

Table of Contents

Overview

Security-Patch-Manager is a Bash script designed to streamline the process of managing system security updates on Linux-based environments. With a focus on simplicity and efficiency, this script automates the tasks of checking for available updates, displaying relevant information, and applying updates when desired.

Dependencies

The following dependencies are required to run the Security Patch Manager script:

  • awk: A programming language and utility for pattern scanning and processing. It's used in various parts of the script for text processing.

  • column: A command-line utility to format its input into multiple columns. It's used to format the output of certain commands for better readability.

  • ping: A command-line utility to test the reachability of a host on an IP network. In the script, it's used to check for an active internet connection.

  • sudo: A command-line utility that allows a permitted user to execute a command as the superuser or another user. It's used to run certain commands with elevated privileges.

  • apt: The package management tool for Debian-based Linux distributions like Ubuntu. It's used to update, upgrade, and manage software packages.

Make sure these dependencies are installed on your system. Most Linux distributions come with these utilities pre-installed, but if any of them are missing, you can install them using your package manager. For example, on Ubuntu, you can install missing dependencies.

Flags

Flag Description
-h, --help Show help message.
-r, --root Run the script as root.
-v, --version Display script version.
-l, --list List available security updates.
-a, --apply Apply security updates.
-c, --clean Run 'apt autoclean'.
-d, --remove Run 'apt autoremove'.

Functions

  • print_message: Display colored messages.
  • exit_message: Display exit message.
  • trap exit_message INT: Trap Ctrl+C to display exit message.
  • show_version: Display script version.
  • press_enter: Wait for Enter key press to continue.
  • print_banner: Print the contents of an ASCII banner from a file.
  • print_linux_util_banner: Print the Linux-Util banner.

Contributing

Feel free to contribute by submitting issues or pull requests.

License

This project is licensed under the MIT License.

security-patch-manager's People

Contributors

armoghan-ul-mohmin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.