0% found this document useful (0 votes)
12 views

Install Libreoffice

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Install Libreoffice

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

How to install LibreOffice in Kali Linux using Terminal

You can install LibreOffice in Kali Linux by following very simple steps.
Step 1: Open terminal
Step 2: Update Kali Linux by running following command
$sudo apt-get update
When you will run apt-get update command then make sure you have added Kali Linux repository. If
you had not added repository source in source.list file then you will face the problem.
root@kali:~# apt-get update
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease [30.5 kB]
Get:2 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages [17.1 MB]
Get:3 http://ftp.harukasan.org/kali kali-rolling/non-free amd64 Packages [192 kB]
Get:4 http://ftp.harukasan.org/kali kali-rolling/contrib amd64 Packages [111 kB]
Fetched 17.4 MB in 5min 18s (54.8 kB/s)
Reading package lists... Done
root@kali:~

Step 3: Install LibreOffice in Kali Linux by executing the following command


$sudo apt-get install libreoffice

How to install LibreOffice in Kali Linux Method 2


In this section, I am going describe second method to install libreoffice in Kali Linux.
If you are unable to install libreoffice on your Kali system by using apt or apt-get command as describe
above.
Then you can download executable file from official website of libreoffice and install it correctly on
your machine with the help of dpkg command.

Download libreoffice
Go to the following link and download libreoffice. https://www.libreoffice.org/download/download/
Before going to download you must keep in mind two important facts about Kali and LibreOffice as
following:
• Kali Linux is a Debian based operating system so download .deb file.
• As the latest version of LibreOffice is just made for a 64 bit Linux system. So your installed
Kali must be 64-bit architecture.
So the download as following steps:

Step 1: Open the link https://www.libreoffice.org/download/download/


Step 2: Select “Linux (64-bit)(deb)” for drop down menu. This option is available choose your
operating system. Then click on Download button.

Step 3: New window will be popup select Save File radio button and then click on “OK” button to save
the file.
Install LibreOffice in Kali Linux by dpkg command
As you have seen, I have downloaded executable file with the .deb extension for Kali Linux.
By default, downloaded files go to Download folder so use cd command to change directory. Use the
following syntax:
$cd Downloads
vijay@kali:~$ cd Downloads/
vijay@kali:~/Downloads$ ls
LibreOffice_6.4.4_Linux_x86-64_deb.tar.gz
vijay@kali:~/Downloads$

The downloaded file is LibreOffice_6.4.4_Linux_x86-64_deb.tar.gz, This file is zip format.


I need to extract it first tar command can be used to perform this action.
$ tar -xvf LibreOffice_6.4.4_Linux_x86-64_deb.tar.gz
Again use ls command to view available content inside the current folder, which is Downloads.
$ls
You will see new folder has been appeared after extracting, Go inside it. Then move inside DEBS
folder. You can use following commands to do that.
$ cd LibreOffice_6.4.4.2_Linux_x86-64_deb/DEBS/
Again you can use ls command to see the content is DEBS folder. You will find lots of .deb files there.
As you know, multiple tools belong to LibreOffice. For example LibreOffice Calculator, Libreoffice
writer, presenter, etc.
You must need to install all packages that exist inside the DEBS folder. So use the following command
to install deb file in Ubuntu of all type packages by using single dpkg command as follows.
$sudo dpkg -i lib*
vijay@kali:~/Downloads/LibreOffice_6.4.4.2_Linux_x86-64_deb/DEBS$ sudo dpkg -i lib*
vijay@kali:~/Downloads/LibreOffice_6.4.4.2_Linux_x86-64_deb/DEBS$ sudo dpkg -i lib*
Open LibreOffice in Kali Linux:
Just go to search application bar and search for Libreoffice. See in following image.

I am going to open Libreoffice writer, It will look like follwoing


Uninstall LibreOffice in Kali Linux
If you don’t want to use LibreOffice any more in your system then you can uninstall by following
simple steps.
Open terminal and type simple single command as follows
$sudo apt remove –purge libreoffice*
Additional run the following command to clean the apt database.
$sudo apt clean
Don’t forget to run following command for removing unuseful tool, utility
$sudo apt autoremove
*************************************End******************************************

You might also like