这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Grimler91
Copy link
Member

Before pkg up* always did apt update && apt upgrade, with this it is possible to do only apt update, with pkg upd* (while pkg upg* does apt update && apt upgrade).

@ravener
Copy link

ravener commented Sep 7, 2022

Since pkg install always runs apt update doesn't feel like a bit inconsistent? Like they'd have to use apt anyway for the update only command to be useful.

@agnostic-apollo
Copy link
Member

Thanks.

@ravener Required to fix termux-change-repo and just sync apt repo instead of upgrading packages.

TERMUX_APP_PACKAGE_MANAGER=apt pkg --check-mirror update

un*|rem*|rm|del*) apt remove "$@";;
up*) select_mirror; apt update; apt full-upgrade "$@";;
upd*) select_mirror; apt update;;
upg*) select_mirror; apt update; apt full-upgrade "$@";;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be following, otherwise will break existing scripts for package upgrade and comments in issues/reddit.

upd*) select_mirror; apt update;;
up*) select_mirror; apt update; apt full-upgrade "$@";;

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this suggestion got ignored? I already see lots of complains about pkg up not working anymore.

Before pkg up* always did apt update && apt upgrade, with this it is
possible to do only apt update, with pkg upd* (while pkg upg* does apt
update && apt upgrade).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants