설거지 스크립트 (파이썬3)

일정 주기로 꾸준히… 정기적으로
sudo apt update
sudo apt upgrade

해왔습니다 손가락이 고생하는걸 줄이려,
그래서 스크립트 하나 맹글었습니다.

이후 bash alias 에 걸어두고 씁니다

이젠 그놈터미날에서 아래처럼 한방에 끝냅니다:

$ 설거지

설거지 스크립트 소스코드 (파이썬3):
===> https://gitlab.com/soyeomul/Gnus/-/raw/master/설거지.py

실험결과를 첨부합니다:

(bionic)soyeomul@localhost:~$ alias | grep 설거지
alias 설거지='설거지.py'
(bionic)soyeomul@localhost:~$ time 설거지
Hit:1 http://ftp.harukasan.org/ubuntu-ports bionic InRelease                                          
Hit:2 http://ftp.harukasan.org/ubuntu-ports bionic-updates InRelease                                  
Hit:3 http://ftp.harukasan.org/ubuntu-ports bionic-security InRelease                              
Hit:4 http://ppa.launchpad.net/kelleyk/emacs/ubuntu bionic InRelease         
Reading package lists... Done                      

 이제 다음단계로 넘어가네유 ~~~ 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cabextract gconf-service gconf-service-backend gconf2-common gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0 icu-devtools libbonobo2-0 libbonobo2-common
  libbonoboui2-common libcairo-script-interpreter2 libclass-data-inheritable-perl libclass-method-modifiers-perl libcommon-sense-perl libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl
  libdata-random-perl libdbus-1-dev libdconf-doc libegl1-mesa-dev libepoxy-dev libfile-which-perl libfontconfig1-dev libfreetype6-dev libgconf-2-4 libgd-perl libglade2-0 libgles1
  libglvnd-core-dev libglvnd-dev libgnome-keyring-common libgnome-keyring0 libgnome2-canvas-perl libgnome2-gconf-perl libgnome2-wnck-perl libgnomecanvas2-0 libgnomecanvas2-common
  libgnomeui-common libgraphite2-dev libgtk2-imageview-perl libgtk2-unique-perl libgtkimageview0 libharfbuzz-gobject0 libhttp-server-simple-perl libice-dev libicu-le-hb0 libiculx60
  libimage-magick-perl libimage-magick-q16-perl libjson-perl libjson-xs-perl liblirc-client0 libllvm9 libmouse-perl libmspack0 libnet-dropbox-api-perl libnet-oauth-perl libnetplan0
  libopengl0 liborbit-2-0 libpath-class-perl libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng-dev libpng-tools libproc-processtable-perl libproc-simple-perl
  libsm-dev libsort-naturally-perl libtypes-serialiser-perl libunique-1.0-0 libvala-0.40-0 libwayland-bin libwayland-dev libwnck-common libwnck22 libwww-mechanize-perl
  libx11-protocol-other-perl libx11-xcb-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev
  libxcb-sync-dev libxcb-xfixes0-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxft-dev libxinerama-dev libxkbcommon-dev libxrandr-dev libxrender-dev libxshmfence-dev libxtst-dev
  libxxf86vm-dev mesa-common-dev rtmpdump valac-0.40-vapi wayland-protocols x11proto-composite-dev x11proto-damage-dev x11proto-randr-dev x11proto-record-dev x11proto-xf86vidmode-dev
  x11proto-xinerama-dev zlib1g-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

real	0m8.832s
user	0m3.944s
sys	0m0.856s
(bionic)soyeomul@localhost:~$ date
2021. 05. 04. (화) 20:08:45 KST
(bionic)soyeomul@localhost:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic
(bionic)soyeomul@localhost:~$

꾸벅,

황병희 드림

[크롬북에서 적었어유~~~]
[우분투 18.04 파여폭스 나비에서 설거지 실험결과 첨부합니다]