Lx4U-book/docs/build-temp-system/cleanup.md
2021-07-03 09:19:20 +03:00

37 lines
875 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Очистка и сохранение временной системы
Файлы `libtool` с расширением `.la` могут мешать линковке с динамическими библиотеками. Удалите их:
```bash
find /usr/{lib{,32},libexec} -name \*.la -delete
```
Удалите документацию временных инструментов:
```bash
rm -rf /usr/share/{info,man,doc}/*
```
## Выход из среды chroot
[filename](files/exit-chroot.md ":include")
## Сохранение
При желании сохраните временную систему в архив:
```bash
cd $LIN &&
tar -cJpf $HOME/lin-temp-tools.tar.xz .
```
## Восстановление
Выполняется из-под хост-системы:
```bash
cd $LIN &&
rm -rf ./* &&
tar -xpf $HOME/lin-temp-tools.tar.xz
```