|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Damir R. Islamov 2:5020/400 15 Jan 2004 05:08:00 To : %NAME Subject : Re: Установка *.deb в Debian 3.0 r0 --------------------------------------------------------------------------------
Jura Krizhbersky wrote:
> сказали: dselect dpkg-deb.Как с пеpвым так и со втоpым я не
> подpужился, потому что dselect не понимает когда я ему пpописываю путь к
> binary-i386 ..., либо я не понимаю в каком фоpмате должна быть запись,
> dpkg-deb я так понял вообще не для установки. Hо чесно говоpя меня волнует
> вопpос как войти в *.deb , и на сколько я помню:
> ./configure //если не выдаст ошибок о зависимости
> make //он кажется ошибок не выдает
> make install //а эта команда выдает только pезультат удачно закончилась
> установка или нет.
Hу начнём по порядку: тебя инормировали правильно, но понял ты всё не так.
dselect -- front-end к apt, что есть набор утилит для работы с dpkg, умеющие
скачивать пакеты по сети, с СД, осущестлять поиск в описаниях пакетов и
т.д. apt "грамотный" -- посмотрит на зависимости пакета и поставил всё
необходимое + порекомендует ещё чего-нибудь.
dpkg -- пакетный менеджер для debian. Управлиет установкой, конфигурацией,
удалением пакетов. Работает только с локальными *.deb файлами. Если
прочитать man dpkg, то можно увидеть, что
dpkg -i package-file.deb
инсталирует пакет (и сконфигурирует):
dpkg -i | --install package_file...
Install the package. If --recursive or -R option is
specified, package_file must refer to a directory instead.
Installation consists of the following steps:
1. Extract the control files of the new package.
2. If another version of the same package was installed
before the new installation, execute prerm script of the old package.
3. Run preinst script, if provided by the package.
4. Unpack the new files, and at the same time back up the old
files, so that if something goes wrong, they can be restored.
5. If another version of the same package was installed
before the new installation, execute the postrm script of the old package.
Note that this script is executed after the preinst script of the new
package, because new files are written at the same time old files are
removed.
6. Configure the package. See --configure for detailed
information about how this is done.
dpkg -r package удалит указанный пакет:
dpkg -r | --remove | -P | --purge package ... | -a | --pending
Remove an installed package. -r or --remove remove everything
except configuration files. This may avoid having to reconfigure the
package if it is reinstalled later. (Configuration files are the files
listed in the debian/conffiles control file). -P or --purge removes
everything, including configuration files. If -a or --pending is given
instead of a package name, then all packages unpacked, but marked to
be removed or purged in file /var/lib/dpkg/status, are removed or purged,
respectively.
Removing of a package consists of the following steps:
1. Run prerm script
2. Remove the installed files
3. Run postrm script
Для более детальной инфрмации читать надо man dpkg и man apt.
Еще есть такие полезные документы:
/usr/share/doc/Debian/apt-howto/apt-howto.ru.html
/usr/share/doc/Debian/apt-howto/apt-howto.ru.pdf.gz
/usr/share/doc/Debian/apt-howto/apt-howto.ru.ps.gz
/usr/share/doc/Debian/apt-howto/apt-howto.ru.txt.gz
из пакета apt-howto-ru
--
Best regards,
Damir
--- ifmail v.2.15dev5.1
* Origin: NSU (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/5491a515cb6a.html, оценка из 5, голосов 10
|