How to delete boost linux

Uninstall boost and install another version

I’ve installed the boost libraries on Linux Mint 12 using the command sudo apt-get install libboost-dev libboost-doc , which installs the default version available in the repositories. However, the project I have to do needs the 1.44 version of boost. How do I uninstall the default (current) version 1.46 and install 1.44?

I couldn’t find the documentation on the boost website to install boost from the .tar.gz package.

/boost/stage/lib/libboost_regex-gcc34-mt-d-1_36.a, I dont understand that command, it produces the output g++ -I /usr/local/boost_1_48_0 example.cpp -o example -L

/boost/stage/lib/ -lboost_regex-gcc34-mt-d-1_36 /usr/bin/ld: cannot find -lboost_regex-gcc34-mt-d-1_36 collect2: ld returned 1 exit status

6 Answers 6

Boost can installed by two ways

  • Deb package
  • wget and install manually

In some case we might have installed by both type which can cause version error. Lets see how to uninstall both.

Then we need to install other dependencies if they are not met

Lets download the boost version which we need from the link. I am downloading the 1.54 version. Then untar and install it.

Now let’s check the installed version

You will see something like below

Version 1.54 of boost is installed

That’s it, it worked for me. Let me know if you face any issues.

You can uninstall with

Download the package you need from boost website, extract and follow «getting started» instructions found inside index.html in the extracted directory.

Downgrade your boost version. I’m not familiar with Mint, but assuming it is deb-based, you can do:

to see all installable version and install a specific version with

There are also convenience packages for the major boost versions:

Tested working Ubuntu 20.04 Use my script to uninstall your older version of boost in ubuntu 20.04 and follow rams instructions above

As @savamane wrote you can uninstall it with

apt-get —purge remove libboost-dev libboost-doc

Another suggestion to install the .deb packages as suggested here. (Download the one fitted for your architecture though).

Источник

Удалите boost и установите другую версию

Я установил библиотеки надстроек в Linux Mint 12, используя команду sudo apt-get install libboost-dev libboost-doc , которая устанавливает версию по умолчанию, доступную в репозиториях. Тем не менее, проект, который я должен сделать, нуждается в версии 1.44. Как удалить стандартную (текущую) версию 1.46 и установить 1.44?

Я не смог найти документацию на веб-сайте повышения , чтобы установить повышение с .tar.gz package.

5 ответов

Вы можете удалить с помощью

Загрузите необходимый пакет с веб-сайта boost, распакуйте и следуйте инструкциям по началу работы, найденным в index.html в извлеченном каталоге.

Понизьте версию вашего буста. Я не знаком с Mint, но если предположить, что он основан на deb, вы можете сделать следующее:

чтобы увидеть все устанавливаемые версии и установить определенную версию с помощью

Существуют также удобные пакеты для основных буст-версий:

Boost можно установить двумя способами

  • пакет Deb
  • wget и установить вручную

В некоторых случаях мы могли установить оба типа, что может привести к ошибке версии. Давайте посмотрим, как удалить оба.

Затем нам нужно установить другие зависимости, если они не встречаются

Давайте загрузим нужную нам улучшенную версию по ссылке . Я загружаю версию 1.54. Затем распакуйте и установите его.

Читайте также:  Почему не удаляется папка windows old

Теперь давайте проверим установленную версию

У вас будет что-то похожее ниже

Версия буста 1.54 установлена ​​

Вот и все, это сработало для меня. Дайте мне знать, если у вас возникнут какие-либо проблемы.

Как писал @savamane, вы можете удалить его с помощью

apt-get —purge remove libboost-dev libboost-doc

Еще одно предложение по установке пакетов .deb в соответствии с предложением здесь . (Загрузите тот, который подходит для вашей архитектуры, хотя).

Источник

How to Install Boost on Ubuntu 16.04/18.04 Linux

This post will guide you how to install Boost libraries on Ubunt 16.04/18.04 Linux server. How do I install Boost C++ libraries 1.64 from a PPA in Ubuntu. How to install Boost from the default repositories on Ubuntu 16.04/18.04 Linux. How to install the latest version of Boost libraries from source package on Ubuntu Linux server.

What is Boost?

Boost is a set of libraries for the C++ programming language that provide support for tasks and structures such as linear algebra, pseudorandom number generation, multithreading, image processing, regular expressions, and unit testing. It contains over eighty individual libraries.

Install Boost C++ libraries via Default Repository

Boost is available on the default Ubuntu repositories, so you can install it with apt command directly, type the following commmand:

Verify the installed Boost Version

Once completed the installation process of Boost on your Ubuntu server, you can verify the installed boost version to check if the Boost is installed properly. Type one of the following commands to check version of boost:

Install Boost C++ libraries From PPA

You can also install Boost from a PPA on Ubuntu Linux, just type the following command:

This PPA can be added to your system manually by copying the lines below and adding them to your system’s software sources.

For Ubuntu 18.04:

For Ubuntu 18.10:

For Ubuntu 16.04:

Then you can try to install the Boost on your Ubuntu Linux, and the latest version of this PPA is 1.68, type the following command to install it:

Then the latest version 1.68 of boost would be installed on your Ubuntu Linux server.

Install Boost C++ libraries From Source Package

If you want to install the latest version of Boost( the current release version is 1.69) on your Ubuntu server, you have to install it from source package. And you need to download the latest archive package of boost from its official site firstly. . then execute the installation script. Just do the following steps:

#1 download source package of boost from this link with wget tool, type:

#2 extract all files from the archive file that you downloaded in the above step. type:

#3 Change the current directory to boost_1_69_0/, type:

#4 execute the script bootstrap.sh, type the following command:

#5 Builds and installs Boost with the following command:

Conclusion

You should know that how to install Boost C++ Libraries on your Ubuntu 16.04 or 18.04 Linux from this guide. And if you want to learn more about the Boost, you can go the below official web site to checking the getting started guide directly.

Источник

How to Uninstall Applications from Ubuntu Linux

Last updated January 20, 2021 By Abhishek Prakash 19 Comments

Don’t use a certain application anymore? Remove it.

In fact, removing programs is one of the easiest ways to free up disk space on Ubuntu and keep your system clean.

In this beginner’s tutorial, I’ll show you various ways of uninstalling software from Ubuntu.

Did I say various ways? Yes, because there are various ways of installing applications in Ubuntu and hence various ways of removing them. You’ll learn to:

  • Remove applications from Ubuntu Software Center (for desktop users)
  • Remove applications using apt remove command
  • Remove snap applications in command line (intermediate to advanced users)
Читайте также:  2448ta plus driver windows 10

Let’s see these steps one by one.

Method 1: Remove applications using Ubuntu Software Center

Start the Software Center application. You should find it in the dock on the left side or search for it in the menu.

You can see the installed applications in the Installed tab.

If you don’t see a program here, try to use the search feature.

Search Installed Apps Ubuntu

When you open an installed application, you should see the option to remove it. Click on it.

Remove Applications Ubuntu

It will ask for your account password. Enter it and the applications will be removed in seconds.

This method works pretty well except in the case when Software Center is misbehaving (it does that a lot) or if the program is a software library or some other command line utility. You can always resort to the terminal in such cases.

Method 2: Remove programs from Ubuntu using command line

You know that you can use apt-get install or apt install for installing applications. For uninstalling, you don’t use the apt-get uninstall command but apt-get remove or apt remove .

All you need to do is to use the command in the following fashion:

You’ll be asked to enter your account password. When you enter it, nothing is visible on the screen. That’s normal. Just type it blindly and press enter.

The program won’t be removed immediately. You need to confirm it. When it asks for your conformation, press the enter key or Y key:

Keep in mind that you’ll have to use the exact package name in the apt remove command otherwise it will throw ‘unable to locate package error‘.

Don’t worry if you don’t remember the exact program name. You can utilize the super useful tab completion. It’s one of the most useful Linux command line tips that you must know.

What you can do is to type the first few letters of the program you want to uninstall. And then hit the tab key. It will show all the installed packages that match those letters at the beginning of their names.

When you see the desired package, you can type its complete name and remove it.

What if you do not know the exact package name or even the starting letters? Well, you can list all the installed packages in Ubuntu and grep with whatever your memory serves.

For example, the command below will show all the installed packages that have the string ‘my’ in its name anywhere, not just the beginning.

That’s cool, isn’t it? Just be careful with the package name when using the remove command in Ubuntu.

Tip: Using apt purge for removing package (advanced users)

When you remove a package in Ubuntu, the packaged data is removed, but it may leave small, modified user configuration files. This is intentional because if you install the same program again, it would use those configuration files.

If you want to remove it completely, you can use apt purge command. You can use it instead of apt remove command or after running the apt remove command.

Keep in mind that the purge command won’t remove any data or configuration file stored in the home directory of a user.

Method 3: Uninstall Snap applications in Ubuntu

The previous method works with the DEB packages that you installed using apt command, software center or directly from the deb file.

Ubuntu also has a new packaging system called Snap. Most of the software you find in the Ubuntu Software Center are in this Snap package format.

Читайте также:  Syslog клиент для windows

You can remove these applications from the Ubuntu Software Center easily but if you want to use the command line, here’s what you should do.

List all the snap applications installed to get the package name.

Now use the package name to remove the application from Ubuntu. You won’t be asked for confirmation before removal.

Bonus Tip: Clean up your system with one magical command

Alright! You learned to remove the applications. Now let me tell you about a simple command that cleans up leftover package traces like dependencies that are no longer used, old Linux kernel headers that won’t be used anymore.

In the terminal, just run this command:

This is a safe command, and it will easily free up a few hundred MB’s of disk space.

Conclusion

You learned three ways of removing applications from Ubuntu Linux. I covered both GUI and command line methods so that you are aware of all the options.

I hope you find this simple tutorial helpful as an Ubuntu beginner. Questions and suggestions are always welcome.

Like what you read? Please share it with others.

Источник

How can you completely remove a package?

I am trying to do a clean install of the octave3.2 package.

To do this, I removed it, then tried to reinstall it.

When I reinstalled, an error occurred. It could be a bug in the package, but I want to make sure I have everything removed so that I can do a clean install.

Is it enough to do this?

10 Answers 10

This is a very general answer to the question about the effects of purging packages. For advice specific to your situation, you’ll have to edit your question to include additional information—in particular, the complete and exact text of the error message you are getting.

Removing packages with sudo apt purge . or sudo apt —purge remove . will remove them and all their global (i.e., systemwide) configuration files. This is usually what people mean when they talk about completely removing a package.

But that doesn’t mean your system is the same as it was before the package was installed. In particular:

This does not remove packages that were installed as dependencies, when you installed the package you’re now removing. Assuming those packages aren’t dependencies of any other packages, and that you haven’t marked them as manually installed, you can remove the dependencies with sudo apt autoremove or (if you want to delete their systemwide configuration files too) sudo apt —purge autoremove .

This does not remove non-systemwide configuration files. Specifically, it does not remove user-specific configuration:

It does not remove the configuration files and directories located in users’ home directories (or in the .config subdirectory of their home directories), created by the software the package provides.

  • If these files/folders are not stored in .config , they usually start with a . themselves. Either way, you can see them with ls by using the -a or -A flag, and you can see them in Nautilus and most other file browsers/managers by pressing Ctrl + H or going to View >Show Hidden Files.

It does not reverse changes made to existing user-specific configuration files.

It does not remove new gconf or dconf keys, or reverse any gconf or dconf configuration changes.

Using purge or —purge remove instead of remove does not reverse changes to existing systemwide configuration files provided by other packages or created manually by the user. However, sometimes such changes are undone by uninstalling the package (whether or not it’s a purge rather than a remove ).

Источник

Оцените статью