# How to Uninstall Calibre on Linux


Uninstalling software on Linux can sometimes feel tricky, especially if you’re new to the system or unsure about the commands. If you’ve decided to remove Calibre, the popular e-book management software, from your Linux machine, you’re in the right place. I’ll guide you through the process in a clear, simple way.

Whether you installed Calibre using a package manager or via the official binary installer, the removal steps differ slightly. You’ll learn how to uninstall Calibre completely, including cleaning up leftover files. Let’s get started so you can free up space and keep your system tidy.

## Understanding How Calibre is Installed on Linux

Before uninstalling Calibre, it’s important to know how it was installed. This affects the removal method you’ll use.

Calibre can be installed on Linux mainly in two ways:

- **Using your Linux distribution’s package manager**  
  For example, on Ubuntu or Debian, you might use `apt`. On Fedora, `dnf` or `yum` is common.

- **Using the official Calibre binary installer**  
  This method downloads a script from the Calibre website and installs it outside the package manager system.

Knowing your installation method helps avoid errors during uninstallation.

### How to Check Your Installation Method

You can check if Calibre was installed via a package manager by running:

```bash
which calibre
```

If it returns a path like `/usr/bin/calibre`, it’s likely installed via the package manager. If it points to `/opt/calibre` or a custom directory, it might be the binary installer.

You can also check installed packages:

- On Debian/Ubuntu:

  ```bash
  dpkg -l | grep calibre
  ```

- On Fedora:

  ```bash
  rpm -qa | grep calibre
  ```

If you see Calibre listed, it’s installed via the package manager.

## Uninstalling Calibre Installed via Package Manager

If you installed Calibre using your Linux distribution’s package manager, uninstalling is straightforward.

### For Debian, Ubuntu, and Derivatives

Use the `apt` command:

```bash
sudo apt remove calibre
```

This command removes the Calibre package but keeps configuration files. To remove everything including configs, use:

```bash
sudo apt purge calibre
```

After removal, clean up unused dependencies:

```bash
sudo apt autoremove
```

### For Fedora, CentOS, and RHEL

Use `dnf` or `yum` depending on your system:

```bash
sudo dnf remove calibre
```

or

```bash
sudo yum remove calibre
```

This removes Calibre and its dependencies. You can also clean up cache with:

```bash
sudo dnf clean all
```

### For Arch Linux and Manjaro

Use `pacman`:

```bash
sudo pacman -R calibre
```

To remove dependencies no longer needed:

```bash
sudo pacman -Rns calibre
```

### What Happens After Removal?

Removing Calibre via package managers deletes the main program files. However, your personal Calibre library and configuration files in your home directory remain untouched. You’ll want to remove those manually if you want a full clean.

## Uninstalling Calibre Installed via Official Binary Installer

Many Linux users prefer the official Calibre installer because it provides the latest version. This installer places Calibre in `/opt/calibre` by default.

### How to Remove Calibre Installed via Binary Installer

1. **Locate the installation directory**  
   Usually, it’s `/opt/calibre`.

2. **Run the uninstall script**  
   The official installer does not provide an uninstall script, so you need to remove the directory manually.

3. **Remove the Calibre directory**

```bash
sudo rm -rf /opt/calibre
```

4. **Remove symbolic links**

The installer creates symbolic links in `/usr/bin` or `/usr/local/bin`. Remove them with:

```bash
sudo rm /usr/bin/calibre
sudo rm /usr/bin/calibre-customize
sudo rm /usr/bin/calibre-debug
sudo rm /usr/bin/calibre-eject
sudo rm /usr/bin/calibre-parallel
sudo rm /usr/bin/calibre-server
sudo rm /usr/bin/calibre-smtp
sudo rm /usr/bin/calibre-smtp
sudo rm /usr/bin/calibre-smtp
```

*Note:* Adjust the paths if your system uses `/usr/local/bin` or another directory.

5. **Remove desktop entries**

If you have Calibre shortcuts in your desktop environment, remove them:

```bash
rm ~/.local/share/applications/calibre.desktop
```

### Cleaning Up User Data

Calibre stores your e-book library and settings in your home directory, usually under `~/Calibre Library` and `~/.config/calibre`.

To remove these:

```bash
rm -rf ~/Calibre\ Library
rm -rf ~/.config/calibre
```

Be sure you want to delete your e-books and settings before running these commands.

## Checking for Leftover Files and Cleaning Up

After uninstalling Calibre, it’s good practice to check for leftover files that might consume space.

### Common Locations to Check

- `/usr/share/calibre`  
- `/usr/lib/calibre`  
- `/etc/calibre`  
- Your home directory for hidden files: `~/.calibre` or `~/.config/calibre`

Use the `find` command to locate any remaining files:

```bash
sudo find / -name "*calibre*" 2>/dev/null
```

Delete any unnecessary files carefully.

### Cleaning Package Cache

If you used a package manager, clean the cache to free space:

- For `apt`:

  ```bash
  sudo apt clean
  ```

- For `dnf`:

  ```bash
  sudo dnf clean all
  ```

- For `pacman`:

  ```bash
  sudo pacman -Sc
  ```

## Troubleshooting Common Issues When Uninstalling Calibre

Sometimes, uninstalling Calibre might not go smoothly. Here are some common problems and solutions.

### Calibre Command Still Works After Removal

If you can still run `calibre` after uninstalling, it might be due to:

- Multiple installations (package manager and binary installer both present)  
- Cached shell commands

Try:

- Running `which calibre` to see which executable is being called  
- Removing all Calibre installations as explained above  
- Restarting your terminal or computer

### Permission Denied Errors

If you get permission errors when removing files, use `sudo` to run commands as root.

### Package Not Found

If your package manager says Calibre is not installed, but you still see it, it’s likely installed via the binary installer. Use the manual removal method.

## Alternatives to Uninstalling: Updating or Reinstalling Calibre

Sometimes, you might want to uninstall Calibre because of bugs or outdated versions. Instead of uninstalling, consider:

- **Updating Calibre**  
  Use your package manager or the official installer to get the latest version.

- **Reinstalling Calibre**  
  Remove the current version and install fresh to fix issues.

This can save time and keep your e-book management uninterrupted.

## Conclusion

Uninstalling Calibre on Linux depends on how you installed it. If you used your distribution’s package manager, removal is simple with commands like `apt remove` or `dnf remove`. For the official binary installer, you’ll need to manually delete the installation directory and symbolic links.

Don’t forget to clean up your personal Calibre library and configuration files if you want a full uninstall. Checking for leftover files and cleaning package caches helps keep your system tidy.

By following these steps, you can safely and completely uninstall Calibre from your Linux system. Whether you want to free up space or switch to another e-book manager, this guide has you covered.

### FAQs

#### How do I know if Calibre was installed via package manager or binary installer?

Run `which calibre` and check the path. Package manager installs usually place Calibre in `/usr/bin`. Binary installs often reside in `/opt/calibre` or custom directories.

#### Will uninstalling Calibre delete my e-book library?

No, uninstalling Calibre does not delete your e-book library stored in your home directory unless you manually remove those folders.

#### Can I reinstall Calibre after uninstalling it?

Yes, you can reinstall Calibre anytime using your package manager or the official installer.

#### How do I remove leftover Calibre files after uninstalling?

Check common directories like `/usr/share/calibre`, `/etc/calibre`, and your home folder for `.config/calibre`. Use `rm -rf` carefully to delete them.

#### What if I get permission denied errors when uninstalling?

Use `sudo` before your commands to run them with administrative privileges, which is often required for uninstalling system software.
