mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-17 19:30:10 +00:00
feat(debian): add alu
alias for list and upgrade packages (#7928)
Closes #7928
This commit is contained in:
parent
37b278cd03
commit
7e4273f440
2 changed files with 9 additions and 5 deletions
|
@ -33,21 +33,22 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
| -------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
| -------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||||
| `aac` | `sudo $apt_pref autoclean` | Clears out the local repository of retrieved package files |
|
| `aac` | `sudo $apt_pref autoclean` | Clears out the local repository of retrieved package files |
|
||||||
|
| `aar` | `sudo $apt_pref autoremove` | Removes packages installed automatically that are no longer needed |
|
||||||
| `abd` | `sudo $apt_pref build-dep` | Installs all dependencies for building packages |
|
| `abd` | `sudo $apt_pref build-dep` | Installs all dependencies for building packages |
|
||||||
| `ac` | `sudo $apt_pref clean` | Clears out the local repository of retrieved package files except lock files |
|
| `ac` | `sudo $apt_pref clean` | Clears out the local repository of retrieved package files except lock files |
|
||||||
| `ad` | `sudo $apt_pref update` | Updates the package lists for upgrades for packages |
|
| `ad` | `sudo $apt_pref update` | Updates the package lists for upgrades for packages |
|
||||||
| `adg` | `sudo $apt_pref update && sudo $apt_pref $apt_upgr` | Update and upgrade packages |
|
| `adg` | `sudo $apt_pref update && sudo $apt_pref $apt_upgr` | Update and upgrade packages |
|
||||||
|
| `ads` | `sudo apt-get dselect-upgrade` | Installs packages from list and removes all not in the list |
|
||||||
| `adu` | `sudo $apt_pref update && sudo $apt_pref dist-upgrade` | Smart upgrade that handles dependencies |
|
| `adu` | `sudo $apt_pref update && sudo $apt_pref dist-upgrade` | Smart upgrade that handles dependencies |
|
||||||
| `afu` | `sudo apt-file update` | Update the files in packages |
|
| `afu` | `sudo apt-file update` | Update the files in packages |
|
||||||
| `au` | `sudo $apt_pref $apt_upgr` | Install package upgrades |
|
|
||||||
| `ai` | `sudo $apt_pref install` | Command-line tool to install package |
|
| `ai` | `sudo $apt_pref install` | Command-line tool to install package |
|
||||||
| `ail` | `sed -e 's/ */ /g' -e 's/ *//' \| cut -s -d ' ' -f 1 \| xargs sudo $apt_pref install` | Install all packages given on the command line while using only the first word of each line |
|
| `ail` | `sed -e 's/ */ /g' -e 's/ *//' \| cut -s -d ' ' -f 1 \| xargs sudo $apt_pref install` | Install all packages given on the command line while using only the first word of each line |
|
||||||
|
| `alu` | `sudo apt update && apt list -u && sudo apt upgrade` | Update, list and upgrade packages |
|
||||||
| `ap` | `sudo $apt_pref purge` | Removes packages along with configuration files |
|
| `ap` | `sudo $apt_pref purge` | Removes packages along with configuration files |
|
||||||
| `ar` | `sudo $apt_pref remove` | Removes packages, keeps the configuration files |
|
| `ar` | `sudo $apt_pref remove` | Removes packages, keeps the configuration files |
|
||||||
| `aar` | `sudo $apt_pref autoremove` | Removes packages installed automatically that are no longer needed |
|
| `au` | `sudo $apt_pref $apt_upgr` | Install package upgrades |
|
||||||
| `ads` | `sudo apt-get dselect-upgrade` | Installs packages from list and removes all not in the list |
|
|
||||||
| `dia` | `sudo dpkg -i ./*.deb` | Install all .deb files in the current directory |
|
|
||||||
| `di` | `sudo dpkg -i` | Install all .deb files in the current directory |
|
| `di` | `sudo dpkg -i` | Install all .deb files in the current directory |
|
||||||
|
| `dia` | `sudo dpkg -i ./*.deb` | Install all .deb files in the current directory |
|
||||||
| `kclean` | `sudo aptitude remove -P ?and(~i~nlinux-(ima\|hea) ?not(~n$(uname -r)))` | Remove ALL kernel images and headers EXCEPT the one in use |
|
| `kclean` | `sudo aptitude remove -P ?and(~i~nlinux-(ima\|hea) ?not(~n$(uname -r)))` | Remove ALL kernel images and headers EXCEPT the one in use |
|
||||||
|
|
||||||
## Aliases - Commands using `su`
|
## Aliases - Commands using `su`
|
||||||
|
@ -77,8 +78,8 @@ Set `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh
|
||||||
| ------------------- | --------------------------------------------------------------- |
|
| ------------------- | --------------------------------------------------------------- |
|
||||||
| `apt-copy` | Create a simple script that can be used to 'duplicate' a system |
|
| `apt-copy` | Create a simple script that can be used to 'duplicate' a system |
|
||||||
| `apt-history` | Displays apt history for a command |
|
| `apt-history` | Displays apt history for a command |
|
||||||
| `kerndeb` | Builds kernel packages |
|
|
||||||
| `apt-list-packages` | List packages by size |
|
| `apt-list-packages` | List packages by size |
|
||||||
|
| `kerndeb` | Builds kernel packages |
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,9 @@ if [[ $use_sudo -eq 1 ]]; then
|
||||||
# apt-get only
|
# apt-get only
|
||||||
alias ads="sudo apt-get dselect-upgrade"
|
alias ads="sudo apt-get dselect-upgrade"
|
||||||
|
|
||||||
|
# apt only
|
||||||
|
alias alu="sudo apt update && apt list -u && sudo apt upgrade"
|
||||||
|
|
||||||
# Install all .deb files in the current directory.
|
# Install all .deb files in the current directory.
|
||||||
# Warning: you will need to put the glob in single quotes if you use:
|
# Warning: you will need to put the glob in single quotes if you use:
|
||||||
# glob_subst
|
# glob_subst
|
||||||
|
|
Loading…
Reference in a new issue