2019/12/03

local apt get pkg deb file server client

mkdir /root/bin
cd /root/bin

touch update-fairdb_five_finger_point update-fairdb_gesture update-fairdb_single_v update-fairdb_wall

vi update-fairdb_five_finger_point
#!/bin/bash
cd /srv/www/yakkety.fw.fairux.net/fairux_deb/five_finger_point/stable
dpkg-scanpackages stable /dev/null | gzip -9c > stable/Packages.gz

vi update-fairdb_gesture
#!/bin/bash
cd /srv/www/yakkety.fw.fairux.net/fairux_deb/gesture/stable
dpkg-scanpackages stable /dev/null | gzip -9c > stable/Packages.gz

vi update-fairdb_single_v
#!/bin/bash
cd /srv/www/yakkety.fw.fairux.net/fairux_deb/card_theme/Single_v/stable
dpkg-scanpackages stable /dev/null | gzip -9c > stable/Packages.gz

vi update-fairdb_wall
#!/bin/bash
cd /srv/www/yakkety.fw.fairux.net/fairux_deb/card_theme/wall/stable
dpkg-scanpackages stable /dev/null | gzip -9c > stable/Packages.gz

chmod +x ./*

cd /srv/www/yakkety.fw.fairux.net/fairux_deb/card_theme/wall/stable
zcat stable/Package.gz

mkdir /srv/www/yakkety.fw.fairux.net/fairux_deb/
mkdir /srv/www/yakkety.fw.fairux.net/fairux_deb/card_theme/Single_v/stable
mkdir /srv/www/yakkety.fw.fairux.net/fairux_deb/five_finger_point/stable
mkdir /srv/www/yakkety.fw.fairux.net/fairux_deb/gesture/stable 
mkdir /srv/www/yakkety.fw.fairux.net/fairux_deb/wall/stable


cd /etc/apt/sources.list.d

vi fairuxdeb.list
deb file:/srv/www/yakkety.fw.fairux.net/fairux_deb/card_theme/Single_v stable/
deb file:/srv/www/yakkety.fw.fairux.net/fairux_deb/five_finger_point stable/
deb file:/srv/www/yakkety.fw.fairux.net/fairux_deb/gesture stable/
deb file:/srv/www/yakkety.fw.fairux.net/fairux_deb/wall stable/

==========================
업데이트 클라이언트 작업.
=========================
홈 패스 추가
vi ~/.profile

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

sudo source ~/.profile
sudo update-fairdb_five_finger_point && update-fairdb_gesture && update-fairdb_single_v && update-fairdb_wall
sudo apt-get update
sudo apt-get upgrade

서명 없이 없데이트
sudo apt-get update --allow-unauthenticated

댓글 없음:

댓글 쓰기