首页 > 系统相关 >How to Install LibreOffice on Ubuntu

How to Install LibreOffice on Ubuntu

时间:2024-05-24 18:09:14浏览次数:12  
标签:Install AppImage How command install Ubuntu LibreOffice your

How to Install LibreOffice on Ubuntu

BYHAROON JAVED PUBLISHED DEC 30, 2023  

Looking for a simple alternative to Microsoft Office on Linux? Start by installing LibreOffice.

LibreOffice icons for Writer, Calc, and ImpressCorbin Davenport / The Document Foundation

Quick Links

KEY TAKEAWAYS

  •  To install LibreOffice on Ubuntu, first, update your system's package list then run the "apt install libreoffice" command.
  •  You can also install LibreOffice using Snap. Run the "sudo snap install libreoffice" command in the terminal to install LibreOffice on Ubuntu.
  •  To use LibreOffice without installation, first download its AppImage. Then, right-click the AppImage file, go to the file properties, and check off the "Allow Executing File As Program" option. After that, run the AppImage to start using LibreOffice.

Whether you're an experienced Ubuntu user or a beginner, LibreOffice is an excellent office suite that can significantly enhance your productivity. It provides various useful tools for word processing, presentations, and spreadsheets. This article covers LibreOffice installation on Ubuntu using different methods.

What Is LibreOffice?

LibreOffice is an open-source and free office productivity suite. It is one of the best alternatives to Microsoft Office on Linux and is compatible with many other major office suites. You can use it to create and edit documents, spreadsheets, drawings, presentations, databases, and more.

Some key features of LibreOffice are:

 
  • LibreOffice is free and open source, while its alternatives like Microsoft Office are proprietary and expensive.
  • Available on different platforms, including Windows, macOS, and Linux.
  • Compatible with popular file formats, including those used by several versions of Microsoft Office.
  • It includes all the writing and editing features of other popular office suites.
  • LibreOffice has support for extensions and add-ons for additional functionality.

Luckily, most Linux distributions, such as Ubuntu, come with LibreOffice pre-installed. However, the default LibreOffice is not the most up-to-date version. Follow this guide to get the latest LibreOffice suite on Ubuntu.

 

How to Install LibreOffice on Ubuntu

There are several ways to install LibreOffice on Ubuntu. You can either get it from the official Ubuntu repositories using the apt command or from the official PPA (Personal Package Archive).

You can also install the LibreOffice suite as a Snap or DEB package on Ubuntu. We will also discuss how to run LibreOffice without installing—through an AppImage.

1. Install LibreOffice From the Ubuntu Repositories

To install LibreOffice from the official Ubuntu repositories, first, update the system package list with:

 

 

sudo apt update

After that, install the LibreOffice suite using the APT package manager:

 

sudo apt install libreoffice
a terminal with apt command to install libreoffice

The Ubuntu repository doesn't always have the most up-to-date version of LibreOffice. Typically, it lags behind the official LibreOffice releases. So you might miss out on some new features or bug fixes. However, to get the latest stable release of LibreOffice, we recommend downloading it from its official PPA.

2. LibreOffice Installation Using the Official PPA

To install LibreOffice using the official PPA, first, add the LibreOffice PPA to your system. After that, install LibreOffice using the apt command.

We recommend using the official PPA to install LibreOffice on your Ubuntu. The version of LibreOffice provided by the official PPA is more up-to-date than the one in the Ubuntu repositories.

 

Open the terminal and start by adding the LibreOffice PPA to your system:

 

sudo add-apt-repository ppa:libreoffice
Linux terminal displaying the addition of LibreOffice PPA to Ubuntu.

Next, update your Ubuntu packages list with:

 

sudo apt update
Linux terminal with command updating the package list using the apt update

After updating your system package list, install LibreOffice with the apt install command:

 

sudo apt install libreoffice -y
Linux terminal with the command to install LibreOffice using the apt  

That's it, you have successfully installed LibreOffice on Ubuntu.

3. Install the LibreOffice Snap Package on Ubuntu

To install LibreOffice using Snap, all you have to do is run the sudo snap install libreoffice command. Snaps are versatile software packages that operate on various Linux distros. They come prepackaged with all the required dependencies, so they run smoothly and are isolated from the system.

Linux terminal with the command to install LibreOffice using the snap

4. Download and Install the LibreOffice DEB Package

Installing LibreOffice via the DEB package requires downloading and extracting the package file. A DEB package is a standard format for installing software on Debian-based Linux distributions, such as Ubuntu. It contains the executable files, configuration files, and software metadata required for a program to run.

 

LibreOffice provides DEB packages that you can get from the official website and install on your Ubuntu system. To download and install the LibreOffice DEB package, visit the LibreOffice download page, select "Linux," and click on the "Download" button.

LibreOffice official download page with deb file selected for download

You can save the DEB package file to your preferred location.

Next, open the terminal and head over to the directory where you saved the package file. For example, if you have saved the file in the "Downloads" directory, navigate to it using the cd command followed by the directory name:

 

cd ~/Downloads

Now unzip the compressed DEB file using the tar command. Make sure to replace the file name in the following command with the one you've downloaded:

 

tar zxvf LibreOffice_7.6.3_Linux_x86-64_deb.tar.gz
  Linux terminal with tar command to extract downloaded deb files

After that, you need to change your current working directory to the newly created LibreOffice directory:

 

cd LibreOffice_7.6.3_Linux_x86-64_deb/

Inside the LibreOffice directory, navigate to the subdirectory named "DEBS":

 

cd DEBS/

This subdirectory contains the Debian packages (DEB files) that you need to install LibreOffice on your system.

Finally, install LibreOffice using the dpkg command:

 

sudo dpkg -i *.deb
Linux terminal displaying the installation of LibreOffice using the dpkg command  

This command will install LibreOffice and its components on your system. It uses the dpkg tool to install the packages with the -i option. The *.deb part of the command means that you are selecting all the files that end with ".deb" in the current working directory. It will install all the Debian packages present inside the directory.

5. Run LibreOffice on Ubuntu Using the AppImage

LibreOffice provides AppImages that you can download from the official website and run on your Ubuntu system. An AppImage is a portable and self-contained software package that can run on any Linux distribution and platform. You don't need to install or extract it and can execute it directly from a single executable file.

An AppImage also does not interfere with the system or other software and can be easily removed by deleting the file.

To download and run the LibreOffice AppImage, first visit the LibreOffice AppImage page and click on the "Download Fresh Basic" button.

LibreOffice AppImage download page  

After that, save the AppImage file to your preferred location on your system.

Now, open the file manager and navigate to the directory where the AppImage is located. Right-click on the AppImage icon and click the "Properties" option in the context menu.

A context menu of LibreOffice AppImage with properties option highlighted

In the opened dialog box, switch to the "Permissions" section and tick the "Allow Executing File As Program" option.

Permissions section with a tick mark to allow executing file as a program option

Now, that LibreOffice is ready to run, simply right-click on the AppImage Icon and select "Run".

  Context menu of LibreOffice AppImage with run option selected

You can now use the LibreOffice portable version.

LibreOffice on Ubuntu  

Verify LibreOffice Installation on Ubuntu

To check if LibreOffice is successfully installed or not, all you need to do is open a terminal and enter:

 

libreoffice --version

If you see the version number in the output, it means that LibreOffice was successfully installed on your PC. If not, it's recommended that you go through the installation steps again, or choose another way to install the app.

  Linux terminal with the command to check the LibreOffice version

This won't work if you installed LibreOffice as an AppImage since an AppImage is never technically installed on your PC.

To launch LibreOffice from the terminal, run:

 

libreoffice

As soon as you open LibreOffice, the start center will appear. It allows you to create or open a document, spreadsheet, presentation, drawing, database, or formula.

LibreOffice on Ubuntu

You can also launch LibreOffice applications directly from the terminal. For example, the libreoffice --writer command will launch LibreOffice Writer directly from the terminal.

  LibreOffice Writer on Ubuntu  

How to Remove LibreOffice on Ubuntu

To completely remove LibreOffice and free up disk space on your system, run this command:

 

sudo apt remove --purge libreoffice* -y
Linux terminal displaying the removal of LibreOffice using the apt remove command

You can also remove the LibreOffice PPA repository from your Ubuntu system using the below command:

 

sudo add-apt-repository --remove ppa:libreoffice/ppa
Linux terminal with a command to remove the LibreOffice PPA  

If you have installed LibreOffice using Snap, enter the following in the terminal to remove it:

 

sudo snap remove libreoffice
Linux terminal displaying the removal of LibreOffice using the snap remove command

To remove LibreOffice configuration files and dependencies, type:

 

sudo apt autoremove

If you installed LibreOffice as an AppImage, simply find the AppImage file and delete it as you would any other file.

 

Improve Your Work Performance on Ubuntu With LibreOffice

And that wraps up the guide on how you can install LibreOffice on Ubuntu. You can start working on your documents, spreadsheets, presentations, and more with this powerful and free office suite. To make things even better, you can also explore LibreOffice extensions and templates to enhance your productivity and creativity.

   https://www.howtogeek.com/how-to-install-libreoffice-on-ubuntu/

标签:Install,AppImage,How,command,install,Ubuntu,LibreOffice,your
From: https://www.cnblogs.com/pengmn/p/18211479

相关文章

  • How to compile amstex file
    ProblemIdownloadedatexfilefromarxiv,itstartswith\inputamstex\documentstyle{amsppt}\magnification=1200\hsize=13.8cm\catcode`\@=11\def\NoLogo{\let\logo@\empty}\catcode`\@=\active\NoLogo\def\vgk{\text{\bfVG}_k}\def\......
  • Ubuntu 运行可执行程序提示没有那个文件
    最近,我在Ubuntu上运行一个可执行程序时提示没有那个文件或目录。但事实上那个文件是存在的,因此有些迷茫。在了解过程中,发现这种提示对应的情况有如下几种:1.文件路径错误2.文件不存在3.权限问题4.缺少依赖项5.文......
  • Ubuntu的分区方案
    自定义的分区方案更适合自己的项目电脑配置:内存8G500G固态+1TB机械必要分区分区大小备注bios逻辑分区20MUbuntu系统要求EFI逻辑分区10GUbuntu系统要求/主分区余下固态根分区,类似winC盘/boot逻辑分区20G固态根分区,类似winC盘/swap......
  • Docker系列---【/usr/bin/docker-current: Error response from daemon: shim error:
    1.报错信息dockerrun创建新容器时报错/usr/bin/docker-current:Errorresponsefromdaemon:shimerror:docker-runcnotinstalledonsystem.2.解决方案[root@localhost~]#cd/usr/libexec/docker/[root@localhost~]#sudoln-sdocker-runc-currentdocker-runc......
  • 【ubuntu】解决Unable to determine the device handle for GPU 0000:02:00.0: Unknow
    一、问题现象打开应用突然打不开了,一个docker应用依赖显卡报错:failedtocreateshimtask:OCIruntimecreatefailed:xxxxxx  二、定位处理1、查看显示情况$nvidia-smiUnabletodeterminethedevicehandleforGPU0000:02:00.0:UnknownError  2、查看......
  • 问题2:yum install pstree无法安装
    解决办法1.查找pstree命令在哪个包内,执行命令:yum provideslsof2.找到对应的包名:执行安装命令:yuminstallpsmisc3.结果再次执行pstree查看命令执行情况  ......
  • Ubuntu下(跨机)文件、文件夹的拷贝、删除、重命名、移动、备份
    同机操作拷贝命令格式:cp-r源文件目的文件1示例操作:cp-r/home/folderA/usr参数r是指连同源文件中的子目录一同拷贝,就把folderA拷贝到了usr下面2示例操作:cp-r/home/folderA/*/usr/folderA操作将文件夹/home/folderA下面的所有文件全部拷贝到了/usr/folderA......
  • How do I read Japanese characters from a PDF?
    HowdoIreadJapanesecharactersfromaPDF? EncodingCMapsinparticularforCJKscriptsareinaseparatepackage.For.Netuseitext7.font-asianvianuget.ForJavausecom.itextpdf:font-asianviamaven.Theexistenceofthispackageismorevisibl......
  • Ubuntu 22.04 使用self-service-password搭建自主修改密码平台
    Ubuntu系统安装准备正常操作是安装成功系统,安装的时候设置好静态密码。参考官方文档:https://self-service-password.readthedocs.io/en/stable/installation.html根据文档提示安装会报错,网上查了些资料需要按照如下步骤安装依赖。正式安装vi/etc/apt/sources.list.d/ltb-p......
  • windows上使用wsl的ubuntu部署stirling-pdf
    由于要部署stirling-pdf需要docker环境,所以需要使用ubuntu系统,那么在win10/win11上最方便的方式就是使用wsl安装ubuntu然后再wsl上的ubuntu上进行部署,接下来就是整个步骤在windows上使用wsl安装ubuntu,在powershell上使用wsl--install命令就可以默认安装ubuntu了,方便快捷登录ub......