https://github.com/st4s1k/sysrefresh
Handy command to refresh your distribution.
https://github.com/st4s1k/sysrefresh
bash debian linux script shell ubuntu
Last synced: 11 months ago
JSON representation
Handy command to refresh your distribution.
- Host: GitHub
- URL: https://github.com/st4s1k/sysrefresh
- Owner: st4s1k
- Created: 2018-11-22T19:00:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T20:13:29.000Z (about 6 years ago)
- Last Synced: 2025-01-23T23:32:32.910Z (about 1 year ago)
- Topics: bash, debian, linux, script, shell, ubuntu
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sysrefresh
One terminal command for:
1. Resynchronizing the package index files from their sources.
2. Installing the newest versions of all packages.
3. Fixing broken dependencies.
4. Clearing out the local repository of retrieved package files.
5. Removing packages that are no longer needed.
### Equivalent to:
```
sudo apt-get update && // Resynchronizing the package index files from their sources...
sudo apt-get dist-upgrade && // Installing the newest versions of all packages...
sudo apt-get install -f && // Fixing broken dependencies...
sudo apt-get autoclean && // Clearing out the local repository of retrieved package files...
sudo apt-get autoremove // Removing packages that are no longer needed...
```
# Installation
To install the script, just copy-paste and execute this command (it will prompt for root password):
```
git clone git@github.com:st4s1k/sysrefresh.git &&
cd sysrefresh/ &&
chmod +x sysrefresh_install &&
bash ./sysrefresh_install
```
# Usage
Just run the command and enter the root password:
```
sysrefresh
```
# Portable
"sysrefresh" file is a portable version, just modify the permissions and run it:
```
chmod +x sysrefresh
./sysrefresh
```