想知道是否有一个gist脚本来更新你已安装的所有可能的软件包管理器。
我目前正在使用
我想我还有一些。
答案 0 :(得分:1)
好的我发现它有自制软件,apt-get,gems,pip包和节点包。
https://gist.github.com/jfrazelle/57dbf1fccfa02151ff3f
我必须看看我是否可以添加凉亭。
修改强>
我目前的别名
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; sudo composer self-update; composer global update; sudo gem update --system;gem update; gem cleanup; meteor update;'
盖
修改强>
添加了python
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; sudo gem update --system; gem update; gem cleanup; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; meteor update; sudo composer self-update; composer global update;'
修改强>
添加了perl
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; sudo gem update --system; gem update; gem cleanup; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; sudo composer self-update; composer global update; perlbrew self-upgrade; perlbrew upgrade-perl; perlbrew clean; cpan -u; meteor update;'
修改强>
为perl更新创建了一个自定义脚本(perlbrew upgrade-perl
似乎无法正常工作,上面使用)
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; sudo gem update --system; gem update; gem cleanup; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; sudo composer self-update; composer global update; . updatePerl; cpan -u; meteor update;'
修改强>
添加红宝石
创建自定义脚本以更新ruby版本(rbenv似乎没有update to latest
)
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; brew cask cleanup; brew prune; npm update -g npm; npm update -g; updateRuby; sudo gem update --system; gem update; gem cleanup; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; sudo composer self-update; composer global update; . updatePerl; cpan -u; meteor update;'