betty
betty copied to clipboard
Feature Suggestion (Install,Update,Upgrade,...)
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)
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.
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.
Maybe someone should build a cross platform package manager proxy and we could use it.
How would you go about doing something like that?
- First I would read the manual for each package manager that needs to be supported.
- Then I would make a list of use cases I wanted to cover.
- Figure out how to accomplish each task with each package manager.
- Write a common package manager interface that maps easily to each package manager.
- Write mappings from the common interface to each individual package manager.
- 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.