Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zcat /var/log/apt/history.log.*.gz | cat - /var/log/apt/history.log | grep -Po '^Commandline: apt-get install (?!.*--reinstall)K.*'
- grep " install " /var/log/dpkg.log
- sudo apt-get install [package]
- history | grep "apt-get install"
- grep "apt-get install" .bash_history
- ravan@ravan:~$ grep "apt-get install" .bash_history
- sudo apt-get install --no-install-recommends ubuntu-mate-core ubuntu-mate-desktop
- sudo apt-get install xfce4
- sudo apt-get install xfce4.12
- sudo apt-get install pgadmin
- sudo apt-get install touchegg
- sudo apt-get install aptitude
- sudo apt-get install aptitude
- sudo gedit .bash_history | grep "apt-get install"
- sudo apt-get installvim
- grep "apt-get install" .bash_history
- cat .bash_history | grep "apt-get install"
- history | grep apt-get
- zcat /var/log/apt/history.log.*.gz | cat - /var/log/apt/history.log | grep -Po '^Commandline: apt-get install (?!.*--reinstall)K.*'
- zcat -qf /var/log/apt/history.log* | grep -Po '^Commandline: apt-get install (?!.*--reinstall)K.*'
- -q --quiet
- Suppress all warnings.
- -f --force
- Force compression or decompression even if the file has multiple links or the corre‐
- sponding file already exists, or if the compressed data is read from or written to a
- terminal. If the input data is not in a format recognized by gzip, and if the option
- --stdout is also given, copy the input data without change to the standard output: let
- zcat behave as cat. If -f is not given, and when not running in the background, gzip
- prompts to verify whether an existing file should be overwritten.
- alias apted='zcat /var/log/apt/history.log.*.gz | cat - /var/log/apt/history.log | fgrep Commandline: | cut -d " " -f 2- | grep -P "^|install"'
- #!/bin/sh
- NumDaysAgo=18
- find /var/lib/dpkg/info -name "*.list" -mtime -$NumDaysAgo
- -exec stat -c $'%yt%n' {} ; |
- sed -e 's,/var/lib/dpkg/info/,,' -e 's,.list,,' |
- sort -r |
- while read Date Time Xxx Pkg
- do
- lncnt=$(apt-cache --installed rdepends $Pkg | wc -l)
- if [ $lncnt -eq "2" ]
- then echo "$Date $Time $Pkg"
- fi
- done
- echo "JOB COMPLETED: $BASH_SOURCE"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement