betty icon indicating copy to clipboard operation
betty copied to clipboard

Feature Suggestion (Install,Update,Upgrade,...)

Open sameermw opened this issue 10 years ago • 5 comments

If Betty can run following commands or it would be grate...

betty update system / betty run update --- > (apt-get update) betty upgrade system --- > (apt-get upgrade) betty dist-upgrade --- > (dist-upgrade) betty install <package_name> --- > (apt-get install) betty remove <package_name> --- > (apt-get remove)

sameermw avatar Jul 23 '14 07:07 sameermw

It would be cool if betty could use more linux friendly players like rhythmbox and clementine as well as itunes.

So for example - betty run rhythmbox and then all the play, next song, etc, commands will refer to rhythmbox.

Tamsyn avatar Jul 25 '14 05:07 Tamsyn

The only problem with the first idea is that the developers would probably need to find away to make this system-agnostic for the other Linux distro's like SUSE,Red Hat, and Arch which don't use APT as a package manager.

thatrandomcanadianguy avatar Jul 29 '14 17:07 thatrandomcanadianguy

Maybe someone should build a cross platform package manager proxy and we could use it.

brysgo avatar Jul 30 '14 13:07 brysgo

How would you go about doing something like that?

thatrandomcanadianguy avatar Aug 04 '14 21:08 thatrandomcanadianguy

  1. First I would read the manual for each package manager that needs to be supported.
  2. Then I would make a list of use cases I wanted to cover.
  3. Figure out how to accomplish each task with each package manager.
  4. Write a common package manager interface that maps easily to each package manager.
  5. Write mappings from the common interface to each individual package manager.
  6. Write something to detect which package manager is present and use the correct mapping.

For this use case I wouldn't worry about standardizing package names since the user would be responsible for getting the package name right.

brysgo avatar Aug 05 '14 13:08 brysgo