zzh@ZZHPC:~/Downloads$ curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | sudo apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 3954 100 3954 0 0 1842 0 0:00:02 0:00:02 --:--:-- 11595 OK
zzh@ZZHPC:~/Downloads$ sudo echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/migrate.list bash: /etc/apt/sources.list.d/migrate.list: Permission denied zzh@ZZHPC:~/Downloads$ echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ jammy main zzh@ZZHPC:~/Downloads$ sudo vi /etc/apt/sources.list.d/migrate.list
zzh@ZZHPC:~/Downloads$ sudo apt-get update zzh@ZZHPC:~/Downloads$ sudo apt-get install -y migrate
标签:ZZHPC,CLI,migrate,Downloads,list,apt,--,ZIMP From: https://www.cnblogs.com/zhangzhihui/p/17929602.html