Ending up with two OneDrive versions in a CentOS server #2275
Replies: 7 comments
-
To uninstall follow: https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md#uninstalling-the-client - but ensure that it does not uninstall your systemd files ...........
This client 'should' get updated when Linux Brew | Homebrew gets updated. The alternative here would also be to use the Koji Fedora package for EL9 (https://koji.fedoraproject.org/koji/packageinfo?packageID=26044) and use 'mock' to rebuild the SRPM for EL8 (same as CentOS Stream Release 8)
Yes once you remove the 'manual installed client' that is referenced, things will break. You will need to update all the service files to point at the right client - or - symbolically link |
Beta Was this translation helpful? Give feedback.
-
Thanks! I will concentrate first on the removal of the manual installation. I understand that if there is an uninstallation utility, I should use it by using
Once I stopped all |
Beta Was this translation helpful? Give feedback.
-
This depends on where the Linux Brew method has installed those files as well. Hopefully Linux Brew has installed the logrotate & man file to the correct locations. I would, at a minimum:
This should be enough of a cleanup, and leave everything else untouched. |
Beta Was this translation helpful? Give feedback.
-
I'm afraid it is not straightforward to deal with Brew. Here all it installed containing
Should I remove the folder containing the source code and also the binary, logrotate & man folders?
After creating a symbolic link in /usr/local/bin as per:
Will |
Beta Was this translation helpful? Give feedback.
-
The simple answer is I do not know - this is an additional complexity created by your choice of using 'brew' and the following reasons:
It might be best to ask this sort of question on the 'brew' forums as your question really relates to how does 'brew' work, how does logrotate work under brew and so on ... once you get that answer, you will be able to work out what is safe to delete and what is not. IMHO - for RHEL platforms, I would rather build a proper package, install that, rather than mess around with 'brew' and jailed chroot's for the application. If I really wanted to something like that, I would use the Docker container. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. I agree: looking for an alternative to easily maintain OneDrive in several servers, I ended creating a mess in one of them. I don't understand how brew and jailed chroot's work, and this is out of the scope of OneDrive development. I will investigate further and post a new comment if I'm able to work out this issue. Thanks and sorry for the noise. |
Beta Was this translation helpful? Give feedback.
-
@rrodrigueznt
Below is an example of the RPM build command post having all the build dependencies installed:
Then this RPM is installed:
So essentially 4 commands are all you need to 'build' your RPM to 'maintain' your RPM on your platform:
These 4 commands could be scripted as a single script, even querying the GitHub API to get the 'latest' version tag as a variable. Then 'scp' that same RPM file to your other systems:
This scp command could also be included in your script, so that it automatically pushes your built file to your servers. The again, install that that RPM now that it is on your additional servers ... |
Beta Was this translation helpful? Give feedback.
-
Hi! Looking to understand how OneDrive installation and update work, I ended up with two OneDrive installations in a CentOS Stream release 8 server:
Well, alright! I'm using the situation to understand that server better, but some help will be welcome! I appreciate any help you can give me.
First question: provided that each unit configuration file contains a
ExecStart=
line pointing toonedrive
, would it be enough if I modify them and change:ExecStart=/usr/local/bin/onedrive --monitor --confdir=/home/%i/.config/onedrive_igfae-gb
with:
ExecStart=/home/linuxbrew/.linuxbrew/bin/onedrive --monitor --confdir=/home/%i/.config/onedrive_igfae-gb
to update all services to run the updated release installed using HomeBrew package manager?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions