Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

(solved) Switch to Libreoffice 5 from Debian repo ?

Message
Author
zorzi
Forum Novice
Forum  Novice
Posts: 38
Joined: Fri Apr 20, 2018 7:41 pm

(solved) Switch to Libreoffice 5 from Debian repo ?

#1 Post by zorzi » Sun Jun 03, 2018 9:27 am

Hello,

Is there a way to replace MX default Libreoffice 6 with Libreoffice 5 from Debian repos ?

Thanks.
Last edited by zorzi on Sun Jun 03, 2018 11:55 am, edited 1 time in total.

User avatar
fehlix
Forum Regular
Forum Regular
Posts: 615
Joined: Wed Apr 11, 2018 5:09 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#2 Post by fehlix » Sun Jun 03, 2018 10:05 am

zorzi wrote:
Sun Jun 03, 2018 9:27 am
Is there a way to replace MX default Libreoffice 6 with Libreoffice 5 from Debian repos ?
Well, you might convince the apt-package manager like this:

Code: Select all

## apt-repfereces: /etc/apt/preferences.d/debian-liberoffice.pref
##
## this will make apt to prefer debian's provided libreoffce  
## 
Package: libreoffice* fonts-opensymbol gir1.2-lokdocview* python3-uno uno-libs3 ure
Pin: release o=Debian,a=stable,n=stretch
Pin-Priority: 1001
to "downgrade" to debian libroffice version 5.2, if you have still installed libre office
just do an upgrade with the MX-Update or manually:

Code: Select all

# sudo apt-get update && sudo apt-get dist-upgrade
To newly install libreoffce either use MX-package Installer (MXPI)
or this line-example for locale fr_FR:

Code: Select all

# sudo apt-get update && sudo apt-get install libreoffice-calc libreoffice-draw libreoffice-impress libreoffice-math libreoffice-writer libreoffice-l10n-fr libreoffice-help-fr
To go back to MX-provided libreoffice either remove /etc/apt/preferences.d/debian-liberoffice.pref
or comment out with '#"-hash comment sign the Package and Pin-lines.
:snail:
--fehlix

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21793
Joined: Wed Jul 19, 2006 6:13 am

Re: Switch to Libreoffice 5 from Debian repo ?

#3 Post by Jerry3904 » Sun Jun 03, 2018 10:19 am

There is an easier way. Users Manual, Section 5 concerns Software Management, and this question is handled in 5.3.2

Alt-F1
Ctrl-F
downgrade
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
fehlix
Forum Regular
Forum Regular
Posts: 615
Joined: Wed Apr 11, 2018 5:09 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#4 Post by fehlix » Sun Jun 03, 2018 10:36 am

Jerry3904 wrote:
Sun Jun 03, 2018 10:19 am
There is an easier way. Users Manual, Section 5 concerns Software Management, and this question is handled in 5.3.2

Alt-F1
Ctrl-F
downgrade
Well, your answer is an answert to a "how to hold specific-package version" question!
The downgrad recommendation within the manual does not include upgrades,
e.g. security upgrades), as you hold a specific version!
It does also not provide answer of all the packages needed for LO in this example! You would need
to "hold" all packages related to LO! Otherwise you got a mixture of package version for LO
and dpotentially a lot of error messages.
I assume the manual need to be fine tuned a bit to reflect hold vs. replace source of packages!
:puppy:
--fehlix

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21793
Joined: Wed Jul 19, 2006 6:13 am

Re: Switch to Libreoffice 5 from Debian repo ?

#5 Post by Jerry3904 » Sun Jun 03, 2018 11:02 am

There's always room for improvement! The Manual does not attempt to cover everything, as it states in the Introduction.

If op selects the metapackage libreoffice I believe everything will be downgraded.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
fehlix
Forum Regular
Forum Regular
Posts: 615
Joined: Wed Apr 11, 2018 5:09 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#6 Post by fehlix » Sun Jun 03, 2018 11:21 am

Jerry3904 wrote:
Sun Jun 03, 2018 11:02 am
There's always room for improvement! The Manual does not attempt to cover everything, as it states in the Introduction.

If op selects the metapackage libreoffice I believe everything will be downgraded.
Yes some room there...Nop, will not work:
LO_downgrade.png
:snail:
--fehlix
You do not have the required permissions to view the files attached to this post.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 8667
Joined: Sun Dec 16, 2007 1:17 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#7 Post by dolphin_oracle » Sun Jun 03, 2018 11:52 am

libreoffice is a little more complicated than your average app, because its broken down into so many pieces.

if you want to drop it down, you can remove libreoffice-common, which will remove just about all the rest of the pieces. Then weed out anything left (maybe help files or dictionaries).

then apt-get autoremove to clear out some libs.

Code: Select all

sudo apt-get install -t stable libreoffice 
will install libreoffice 5 from debian stable

then place this file in /etc/apt/preferences.d/libreoffice-pin which will force libreoffice to only update from the debian stable repo.

/etc/apt/preferences.d/libreoffice-pin

Code: Select all

Package:  libreoffice*
Pin:  release a=stable
Pin-Priority: 600

Package:  ure
Pin:  release a=stable
Pin-Priority: 600
Last edited by dolphin_oracle on Sun Jun 03, 2018 1:04 pm, edited 1 time in total.
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 17 32 bit (streaming media player)
lenovo ThinkPad T530 - MX-17
lenovo s21e - antiX-17, MX17(live-usb)

zorzi
Forum Novice
Forum  Novice
Posts: 38
Joined: Fri Apr 20, 2018 7:41 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#8 Post by zorzi » Sun Jun 03, 2018 11:54 am

fehlix wrote:
Sun Jun 03, 2018 10:05 am
zorzi wrote:
Sun Jun 03, 2018 9:27 am
Is there a way to replace MX default Libreoffice 6 with Libreoffice 5 from Debian repos ?
Well, you might convince the apt-package manager like this:

Code: Select all

## apt-repfereces: /etc/apt/preferences.d/debian-liberoffice.pref
##
## this will make apt to prefer debian's provided libreoffce  
## 
Package: libreoffice* fonts-opensymbol gir1.2-lokdocview* python3-uno uno-libs3 ure
Pin: release o=Debian,a=stable,n=stretch
Pin-Priority: 1001
to "downgrade" to debian libroffice version 5.2, if you have still installed libre office
just do an upgrade with the MX-Update or manually:

Code: Select all

# sudo apt-get update && sudo apt-get dist-upgrade
To newly install libreoffce either use MX-package Installer (MXPI)
or this line-example for locale fr_FR:

Code: Select all

# sudo apt-get update && sudo apt-get install libreoffice-calc libreoffice-draw libreoffice-impress libreoffice-math libreoffice-writer libreoffice-l10n-fr libreoffice-help-fr
To go back to MX-provided libreoffice either remove /etc/apt/preferences.d/debian-liberoffice.pref
or comment out with '#"-hash comment sign the Package and Pin-lines.
:snail:
--fehlix
That worked perfectly. Many thanks.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 8667
Joined: Sun Dec 16, 2007 1:17 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#9 Post by dolphin_oracle » Sun Jun 03, 2018 12:02 pm

dolphin_oracle wrote:
Sun Jun 03, 2018 11:52 am
libreoffice is a little more complicated than your average app, because its broken down into so many pieces.

if you want to drop it down, you can remove libreoffice-common, which will remove just about all the rest of the pieces. Then weed out anything left (maybe help files or dictionaries).

then

Code: Select all

sudo apt-get install -t stable libreoffice 
will install libreoffice 5 from debian stable.

then place this file in /etc/apt/preferences.d/libreoffice-pin which will force libreoffice to only update from the debian stable repo.

/etc/apt/preferences.d/libreoffice-pin

Code: Select all

Package:  libreoffice*
Pin:  release a=stable
Pin-Priority: 600

Package:  ure
Pin:  release a=stable
Pin-Priority: 600
edit*** just read fehlix's post...whoops :happy: well, essentially the same thing, slightly different methodology.
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 17 32 bit (streaming media player)
lenovo ThinkPad T530 - MX-17
lenovo s21e - antiX-17, MX17(live-usb)

zorzi
Forum Novice
Forum  Novice
Posts: 38
Joined: Fri Apr 20, 2018 7:41 pm

Re: Switch to Libreoffice 5 from Debian repo ?

#10 Post by zorzi » Sun Jun 03, 2018 12:04 pm

dolphin_oracle wrote:
Sun Jun 03, 2018 12:02 pm
dolphin_oracle wrote:
Sun Jun 03, 2018 11:52 am
libreoffice is a little more complicated than your average app, because its broken down into so many pieces.

if you want to drop it down, you can remove libreoffice-common, which will remove just about all the rest of the pieces. Then weed out anything left (maybe help files or dictionaries).

then

Code: Select all

sudo apt-get install -t stable libreoffice 
will install libreoffice 5 from debian stable.

then place this file in /etc/apt/preferences.d/libreoffice-pin which will force libreoffice to only update from the debian stable repo.

/etc/apt/preferences.d/libreoffice-pin

Code: Select all

Package:  libreoffice*
Pin:  release a=stable
Pin-Priority: 600

Package:  ure
Pin:  release a=stable
Pin-Priority: 600
edit*** just read fehlix's post...whoops :happy: well, essentially the same thing, slightly different methodology.
Yes, both pinning methods work. Thanks.
Last edited by zorzi on Sun Jun 03, 2018 12:34 pm, edited 1 time in total.

Post Reply

Return to “Software / Configuration”