-
-
Notifications
You must be signed in to change notification settings - Fork 7
[#TODO] Support more package manager #5
Comments
Zypper (openSUSE) Zypper_MARK='ZPR'; Zypper_COMMAND='sudo zypper refresh && sudo zypper -n install'
superbbootstrap_Zypper() {
sudo zypper -n update # or dist-upgrade instead? maybe overkill
} |
Just curious, why do:
include a sync/refresh option (respectively Lines 101 to 107 in 5b8a7f2
The Lines 159 to 160 in 5b8a7f2
Lines 164 to 165 in 5b8a7f2
Lines 168 to 169 in 5b8a7f2
Lines 174 to 175 in 5b8a7f2
Lines 182 to 186 in 5b8a7f2
Lines 192 to 194 in 5b8a7f2
If so, maybe this should now be:
|
Thanks, this will be add to SBB 1.5.4 but i will change Gentoo package manager's mark |
Yeah... this is kinda redundant, here is the fix taking from your suggestion:
btw, do you mind if i add you name to the credits section? |
Indeed,
No problem! |
Slackware has an 'official' package manager and many unofficial third-party managers for Slackbuilds.org, which is similar to the AUR. I went with sbopkg here for the latter as it does dependency resolution with minimal user interaction, as per the gist of this script.
Also, to my knowledge, there isn't a SlackBuild for snapd (likely due to philosophy and the systemd work-arounds). I would suggest that testing for package manager isn't a fool-proof way to determin if Snap should be in the PACKAGEMANAGER_LIST. I would suggest doing a search by the distro instead, perhaps checking in '/etc/os-release' or similar. This is more important when you get to DNF, which could be Fedora or CentOS 8, etc., etc. Happy to work on that if desired. |
@arcadellama Awesome, thank you for your contribution, This will be added to SBB 1.6.0. Do you mind if i add you name to the credits section? |
Of course, no problem. |
Hello again! I managed to do something for... I couldn't find a way to install MacPorts entirely through the CLI. It has to be installed through a .pkg installer and I don't know how to get the information to get the name of the .pkg file. MacPorts_MARK='MCP'
MacPorts_PM='port'
MacPorts_COMMAND="$PERMISSION_COMMAND $MacPorts_PM install"
superbbootstrap_MacPorts() {
# Install Apple's Command Line Developer Tools (will open a pop-up to confirm)
xcode-select --install
# Get MACPORT_VERSION (ex.: 2.6.4), OS_VERSION_NUMBER (ex.: 10.15) and OS_VERSION_NAME (ex.: Catalina) somehow
macports_pkg_filename=MacPorts-$MACPORT_VERSION-$OS_VERSION_NUMBER-$OS_VERSION_NAME.pkg
curl -O https://github.com/macports/macports-base/releases/latest/download/$macports_pkg_filename
sudo installer -pkg $macports_pkg_filename -target /
} MAS can be installed with Homebrew or MacPorts, one of them should be the MAS_MARK='MAS'
MAS_PM='mas'
MAS_COMMAND="$MAS_PM install"
superbbootstrap_MAS() {
if [ ! -x "$(command -v "$MAS_PM")" ]; then
if [ -x "$(command -v "$Homebrew_PM")" ]; then
$Homebrew_COMMAND mas
elif [ -x "$(command -v "$MCP_PM")" ]; then
$MacPorts_COMMAND mas
else
superbbootstrap_Homebrew
$Homebrew_COMMAND mas
fi
else
printf '%s\n' "MAS has been installed"
fi
# Sign in to the AppStore
if ! (
mas account &> /dev/null && # verify if user is already signed in
mas signin --dialog $APPLE_ID # if not, try to sign in with a pop-up
) ; then
# signin command failed. It is disabled on 10.13+, user has to sign in
# directly from the AppStore
# (stop execution, skip packages with MAS Mark, wait till the user signs in or something)
else
printf '%s\n' "Successfully signed in to the AppStore"
fi I dug a little more about brew cask and it seems you can install apps with Soo.. here's the script with the flag. I didn't include a HomebrewCask_PM because it's the same as Homebrew and I don't know if it's necessary. HomebrewCask_MARK='HBC'
HomebrewCask_COMMAND="$Homebrew_PM --cask install"
superbbootstrap_HomebrewCask() {
if [ ! -x "$(command -v "$Homebrew_PM")" ]; then
superbbootstrap_Homebrew
fi
} There's also an easier way that doesn't need any code change. This Finally, Brew bundle just installs the first time you run Feel free to change the code or rewrite all of it, I'm not very good at bash and it may not be the best code. If you don't own a device with MacOS I'm happy to test it if necessary (as long as I don't have to remove important stuff to reinstall them and set them up again). |
pipx_MARK='PIX'
pipx_PM='pipx'
pipx_COMMAND="$pipx_PM install"
superbbootstrap_pipx() {
python3 -m ensurepip
python3 -m pip install --user pipx
python3 -m pipx ensurepath
} Their repo: https://github.com/pipxproject/pipx |
Are pip and npm still open ? I could work on them if that's the case ! |
@LoricAndre Yes it is still open and i love to see your work on them ^^ |
Done with #18 |
Hi, @LoricAndre! There is some problem I mentioned here: #28 |
Current state:
superb-bootstrap/sbb
Lines 47 to 77 in ef20588
#TODO
PIPXYou can help us by summit:
--noconfirm
,--non-interactive
,--assume-yes
, ... to the commands--sync
over-S
)Example:
The text was updated successfully, but these errors were encountered: