[Share Experiences] 一条命令更新所有玲珑应用 Resolved
Tofloor
poster avatar
deepin-superuser
deepin
2023-12-03 21:48
Author

ll-cli 没有提供更新全部的功能,只能一个一个更新,今天翻玲珑源码的时候发现一个更新全部的小脚本 分享一下

ll-cli list | tail -n +2 | awk '{print  $1}' | xargs -I {} sh -c "ll-cli update {} || true"

或者执行以下命令也可以

/usr/libexec/linglong/upgrade-all

效果
image.png

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-12-03 21:52
#1

like

还想问一下,终端是怎么弄成这样两行的?

Reply View the author
neko
Moderator
2023-12-03 22:39
#2
阿尼樱奈奈

like

还想问一下,终端是怎么弄成这样两行的?

zsh主题

Reply View the author
兆兆嘟嘟嘟
deepin
2023-12-03 23:22
#3

请问在源码的哪个部分可以翻到?

Reply View the author
deepin-superuser
deepin
2023-12-03 23:49
#4
阿尼樱奈奈

like

还想问一下,终端是怎么弄成这样两行的?

编辑 ~/.bashrc 找到 PS1=xxxxx 改成下边的

#display git branch
git_branch() {
   git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}

if [ "$color_prompt" = yes ]; then
    PS1='┌─${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;31m\]$(git_branch)\[\033[00m\]\n└─▪\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(git_branch)\$ '
fi

image.png

Reply View the author
deepin-superuser
deepin
2023-12-03 23:51
#5
兆兆嘟嘟嘟

请问在源码的哪个部分可以翻到?

https://github.com/linuxdeepin/linglong/blob/master/misc/scripts/upgrade-all.in

Reply View the author
WangZhongyun
deepin
2023-12-04 00:00
#6

这样就方便多了

Reply View the author
TSAC
deepin
2023-12-04 00:53
#7

官方为何迟迟不支持 upgrade all app 呢

Reply View the author
神末shenmo
Moderator
Spark-App
2023-12-04 03:08
#8

做一个更新管理器?

Reply View the author
sunny
deepin
2023-12-04 04:28
#9

对于新手来说,这种命令最好了,已经更新

Reply View the author
deepin-superuser
deepin
2023-12-04 16:16
#10
神末shenmo

做一个更新管理器?

可以考虑集成到星火里

目前 update 直接就更新了,query 查出来的东西太多太乱 想检查是否有更新都挺麻烦的

Reply View the author