2022年11月3日 星期四

Properly add 3rd party app repo to apt source list

When you try installing packages from third-party repositories on recent Ubuntu you will be seeing a warning message about 'apt-key being deprecated'. This article is to share how to properly add 3rd party package report into apt source list.

The installation steps recommended by AnyDesk page says:

- add repository key to Trusted software providers list
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
- add the repository:
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
- update apt cache:
apt update
- install anydesk:
apt install anydesk

The new way of adding 3rd party report should be:

- add anydesk repo key to keyrings folder
wget -q0 -  https://keys.anydesk.com/repos/DEB-GPG-KEY | gpg --dearmor | sudo tee /usr/share/keyrings/anydesk.gpg
- add anydesk source list to folder
echo "deb [signed-by=/usr/share/keyrings/anydesk.gpg] http://deb.anydesk.com/ all main" | sudo tee /etc/apt/source.list.d/anydesk.list

Reference:

2022年2月25日 星期五

RSYNC backup

Command line for local backup, no compression for faster transfer rate:

#rsync -avhP --verify-append source/folder dest/folder > xyz.log & disown

By using disown rsync process can still running when logout.