Giter VIP home page Giter VIP logo

upt's Issues

Unable to run upt subcommand that requires sudo

I installed UPT via cargo. And I'm using Ubuntu under WSL2.
When I attempt to run show subcommand, it works:

Details
❯ upt show tldr
Package: tldr
Version: 0.6.4-1build6.3
Priority: optional
Section: universe/doc
Source: haskell-tldr
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Haskell Group <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2903 kB
Depends: libc6 (>= 2.34), libcmark0.30.2 (>= 0.30.2), libffi8 (>= 3.4), libgmp10, git
Conflicts: tldr-py (<< 0.7.0-2~)
Homepage: https://github.com/psibi/tldr-hs#readme
Download-Size: 573 kB
APT-Sources: http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
Description: Haskell tldr client
 Haskell tldr client with support for updating and viewing tldr pages.
 .
 The TLDR pages are a community effort to simplify the beloved man
 pages with practical examples.  See https://tldr.sh/

But when I tried to run install:

❯ upt install tldr
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

So I ran it with sudo:

❯ sudo upt install tldr
sudo: upt: command not found

What is it that I need to do here to allow upt to be run with sudo?
I think I'm missing something obvious but not mentioned in the documentation.
Thanks!

Alias to remove

Upt is the best tool I’ve found for package installation management.

I’d like to require a feature, nothing quite new… it’s almost a muscle memory for me to type uninstall instead of remove, so I wanna ask you to add upt uninstall as an alias to upt remove.

Would it be a problem? Could you do it? I believe I could do it if you don’t mind.

Purge operation

UPT is really awesome (Now I will not have to deal with the one-character syntax of pacman anymore :D).
However, to uninstall a package, you can :

  1. Remove the package
  2. Purge the package

But UPT does not support the second method.
Could you add support for it (maybe not supported by all the package manager)?

Anyway, thanks for the project!

sudo apt upgrade '-y' feature ?

Any chance the '-y' gets added to the blenders ? Its pretty much what annoys me on arch linux... and this could be an killer feature if well adapted as well as this wonderfull universal package tool you guys got going on.

Support scoop

First, I love the program idea! I have had something similar on my todo for quite some time.

For Windows users, there is a popular package manager called scoop

https://scoop.sh/

It would be great if upt could support it just as it handles choco today.

Currently on my Windows 10 system using scoop, all I get when running upt is

$ scoop info wget
Name: wget
Description: A command-line utility for retrieving files using HTTP, HTTPS, FTP, and FTPS protocols.
Version: 1.20.3
Website: https://eternallybored.org/misc/wget/
License: GPL-3.0-or-later (https://spdx.org/licenses/GPL-3.0-or-later.html)
Manifest:
  C:\Users\m\scoop\buckets\main\bucket\wget.json
Installed: No
Binaries:
  wget.exe

$ upt show wget
The system cannot find the file specified. (os error 2)

$ upt update
The system cannot find the file specified. (os error 2)

Please don't use --classic with snap install

Snaps come in various confinement levels. Most common are strict, classic and (sometimes) devmode. The majority are strict and so are confined, such that the application cannot access things outside the approved interfaces such as home, network, and camera.

A classic snap has no such confinement, and can access all files on the computer.

When using snap install, if the user selects a classic snap, they will be informed of this fact, with this message:

alan@nuc:~$ snap install code
error: This revision of snap "code" was published using classic confinement and
       thus may perform arbitrary system changes outside of the security
       sandbox that snaps are usually confined to, which may put your system at
       risk.

       If you understand and want to proceed repeat the command including
       --classic.

If and only if the user decides they want to take the risk of installing the snap, they can optionally choose to install the snap by adding the --classic option.

upt pre-fills --classic on every snap install, whether the user asked or not. Even worse, it only actually shows its own warning about classic snaps on non classic snaps!

This is not a good way to implement snap installation. upt should ideally show the user the message above, and allow them the choice to use the --classic option or not.

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.