Git Product home page Git Product logo

script-apt-get's Introduction

Script Apt Get

Logs install and upgrade actions for apt-get via script

Byte size of Script Apt Get Open Issues Open Pull Requests Latest commits



Requirements

Prerequisites and/or dependencies that this project needs to function properly

  • Debian derived distribution

  • Sudo or Root permissions


Quick Start

Clone this project...

mkdir -vp ~/git/hub/paranoid-linux

cd ~/git/hub/paranoid-linux

git clone [email protected]:paranoid-linux/script-apt-get.git

Install via symbolic link...

cd ~/git/hub/paranoid-linux/script-apt-get

sudo ./linked-install.sh

Update in the future with Git...

cd ~/git/hub/paranoid-linux/script-apt-get

git pull origin main

Usage

Install a package with apt-get...

sudo script-apt-get install vim

... Above command will generate a log file at a path similar to...

~/Documents/logs/apt-get/install/20200915__vim.script

Or upgrade installed packages with apt-get...

sudo script-apt-get upgrade

... Above command will write a log file to a path similar to...

~/Documents/logs/apt-get/upgrade/20200915.script

Notes

This repository may not be feature complete and/or fully functional, Pull Requests that add features or fix bugs are certainly welcomed.


To customize where log files are saved set the _log_dir environment variable per command...

_log_dir="${HOME}/script-logs" script-apt-get upgrade

... or via configuration.sh file, eg...

tee -a ~/git/hub/paranoid-linux/script-apt-get/configurations.sh <<'EOF'
_log_dir="${HOME}/script-logs" script-apt-get upgrade
EOF

For multi-user systems it is a good idea to clone this project to a root owned directory instead, eg...

cd /usr/local/etc

sudo git clone [email protected]:paranoid-linux/script-apt-get.git

cd script-apt-get

sudo ./linked-install.sh

Contributing

Options for contributing to script-apt-get and paranoid-linux


Forking

Start making a Fork of this repository to an account that you have write permissions for.

cd ~/git/hub/paranoid-linux/script-apt-get

git remote add fork [email protected]:<NAME>/script-apt-get.git
  • Commit your changes and push to your fork, eg. to fix an issue...
cd ~/git/hub/paranoid-linux/script-apt-get


git commit -F- <<'EOF'
:bug: Fixes #42 Issue


**Edits**


- `<SCRIPT-NAME>` script, fixes some bug reported in issue
EOF


git push fork main

Note, the -u option may be used to set fork as the default remote, eg. git push fork main however, this will also default the fork remote for pulling from too! Meaning that pulling updates from origin must be done explicitly, eg. git pull origin main

  • Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is https://github.com/<NAME>/<REPO>/pull/new/<BRANCH>

Note; to decrease the chances of your Pull Request needing modifications before being accepted, please check the dot-github repository for detailed contributing guidelines.


Sponsor

Thanks for even considering it!

With sponsor__shields_io__liberapay you may sponsor paranoid-linux on a repeating basis.

Regardless of if you're able to financially support projects such as script-apt-get that paranoid-linux maintains, please consider sharing projects that are useful with others, because one of the goals of maintaining Open Source repositories is to provide value to the community.


Attribution


License

Logs `install` and `upgrade` actions for `apt-get` via `script`
Copyright (C) 2020 S0AndS0

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

For further details review full length version of AGPL-3.0 License.

script-apt-get's People

Contributors

s0ands0 avatar

Watchers

 avatar  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.