Coder Social home page Coder Social logo

hold-pkg's Introduction

hold你的linux桌面版

  • 通过设置package的hold或install属性,达到锁定/解锁package的目的,当package被设置成hold后,不能被删除和升级。
  • 将org、linux-image、nvidia、linux-headers,等package设置成hold后,系统将不会升级这些包。

安装方法

git clone https://github.com/hhlh3l/hold-pkg.git ~/.hold-pkg
sudo chmod +x ~/.hold-pkg/hold-package.py
cd /usr/bin
sudo ln -s ~/.hold-pkg/hold-package.py  ./hold-pkg

这样使用

sudo hold-pkg --init
sudo hold-pkg --hold

and so on

参数说明

参数说明
help查看帮助;
init写默认关键字到key_list,按照关键字查找包并写入pkg_list;
文件在~/.hold-pkg目录下,可以手动改写,使用’#’注释,只支持整行注释;
list按照key_list表刷新pkg_list;
hold按照pkg_list列表名称hold package;
unhold按照pkg_list列表名称解除package的hold状态;
show按参数的关键字查看包状态;
–show list, 查看按照关键字找到的包列表;
–show key, 查看关键字列表;
–show ‘nvidia xorg’, 查看包含关键字‘nvidia’或‘xorg’的包的状态;

hold-pkg's People

Contributors

hhlh3l avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.