The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Некорректно работает программа установки и удаления приложен..."
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"Некорректно работает программа установки и удаления приложен..."  
Сообщение от andrystepa (??) on 03-Июн-07, 13:29 
Уже второй раз устанавливаю Fedora Сore 6 на компьютер, криво подключенный к инету (ADSL, VPN - т.е. когда подключение надо настраивать после установки).
Установил с минимальным набором приложений - думал, после доустановлю. Понадобилось установть кое-какие программы - чтобы инет настроить - запускаю в Иксах программу Установки и удаления приложений - выдает ошибку, что не найдены сведения о имеющихся обновлениях. Видать программка пытается сразу искать обновления - а инета то нету, вот и завершается с ошибкой.
Нашел в /etc/ папку с настройками инетовских серверов обновления для yum. Удалил там все файлы - программа установки удаления благополучно запустилась, но показывает только те программы, которые уже установлены в системе, а тех что не установлены, но есть в дистрибутиве не показывает.
Среди удаленных мною файлов ничего похожего на упоминание о дистрибутиве нет. Только на инетовские сервера.
Попытался  установить нужные пакеты вручную с rpm - но там вылезла куча зависимостей, целый день ставил, так все поставить и не получилось. Может кто-нибудь подсказать, как заставить нормально работать программу установки удаления приложений?
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "Некорректно работает программа установки и удаления приложен..."  
Сообщение от reader (ok) on 03-Июн-07, 13:48 
http://www.city-fan.org/tips/YumRepoFromImages

Fedora Core 5
It's particularly useful to set up a local [core] repository in Fedora Core 5 because pirut, the standard GUI package manager application, is built on yum and will hence take files from your local repository instead of having to go to the Internet to get them - pirut currently doesn't support installation from CD/DVD natively.


Using DVD ISO
In Fedora Core 5, the installer is based on yum and so there is actually yum repository metadata present on the DVD. This makes the process of setting up the local repository even easier, since you don't need to create the metadata yourself.

Create a directory for your repository and mount the DVD ISO there:
# mkdir -p /path/to/your/repo
# mount -r -o loop /path/to/FC-5-i386-DVD.iso /path/to/your/repo
Ensure that the DVD ISO image is mounted at every reboot
edit /etc/fstab and add new line:

/path/to/FC-5-i386-DVD.iso /path/to/your/repo iso9660 ro,loop 0 0

Configure yum to use your new repository

edit /etc/yum.repos.d/fedora-core.repo

comment out any line starting with baseurl or mirrorlist in the [core] repository section at the top

add a new line:
baseurl=file:///path/to/your/repo

Using CD ISO images
Note: I don't have the CD ISO images myself so I haven't tested this procedure with Fedora Core 5.

Creating a repository from CD ISO images is somewhat more complicated, since there are multiple images. There are a number of approaches that could be taken to work around this:

Use something like jigdo to create a single image equivalent to the DVD ISO (jigdo templates for Fedora Core 5 can be found at http://www.jburgess.uklinux.net/jigdo/index.html)

Mount all of the CD images simultaneously and create a symlink farm to the packages on each CD
Copy the packages from the CD images and make a local repo that's independent of the original CD images
I've chosen to take the latter approach here.

Create a directory on your system to hold the repository. It will need to be on a filesystem that has at least 3GB of free space. Then copy the RPM packages and comps.xml file from your CD images into it.


# mkdir -p /path/to/your/repo/RPMS
# cd /path/to/your/repo
# mkdir /mnt/cd1 /mnt/cd2 /mnt/cd3 /mnt/cd4 /mnt/cd5

# mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd1
# mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd2
# mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd3
# mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd4
# mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd5

# cp disc*/Fedora/RPMS/* RPMS
# cp disc1/repodata/comps.xml /path/to/your/repo

You no longer need the CD images, so you can unmount them and remove the mountpoint directories.
# umount cd*
# rmdir disc1 disc2 disc3 disc4 disc5

Create the repository metadata.
# rpm -Uvh RPMS/createrepo*
# createrepo -g comps.xml /path/to/your/repo

Configure yum to use your new repository

edit /etc/yum.repos.d/fedora-core.repo

comment out any line starting with baseurl or mirrorlist in the [core] repository section at the top

add a new line:
baseurl=file:///path/to/your/repo


Using Add/Remove Software With No Network Connection
If you want to use the Add/Remove Software application (pirut) with no network connection, you'll need to disable all of the yum repositories apart from your local one. By default, the only enabled repositories are core (which is now served by your local repository), updates, and extras. You can disable these repositories by changing the line enabled=1 to enabled=0 in /etc/yum.repos.d/fedora-updates.repo and /etc/yum.repos.d/fedora-extras.repo respectively.

If at a later time you have an Internet connection available and would like to update your system or install something from Fedora Extras, you can enable these repositories on the yum command line without needing to edit the .repo files again, e.g.:

# yum --enablerepo=updates --enablerepo=extras update
# yum --enablerepo=updates --enablerepo=extras install somepackage

расписано для fc5, но в fc6 так же.
если будет ругаться на ключи , отключить проверку в repo-файлах и в yum.conf gpgcheck=0


Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Некорректно работает программа установки и удаления приложен..."  
Сообщение от andrystepa email(ok) on 04-Июн-07, 12:19 
>http://www.city-fan.org/tips/YumRepoFromImages
>
>Fedora Core 5
>It's particularly useful to set up a local [core] repository in Fedora
>Core 5 because pirut, the standard GUI package manager application, is
>built on yum and will hence take files from your local
>repository instead of having to go to the Internet to get
>them - pirut currently doesn't support installation from CD/DVD natively.
>
>
>Using DVD ISO
>In Fedora Core 5, the installer is based on yum and so
>there is actually yum repository metadata present on the DVD. This
>makes the process of setting up the local repository even easier,
>since you don't need to create the metadata yourself.
>
>Create a directory for your repository and mount the DVD ISO there:
>
># mkdir -p /path/to/your/repo
># mount -r -o loop /path/to/FC-5-i386-DVD.iso /path/to/your/repo
>Ensure that the DVD ISO image is mounted at every reboot
>edit /etc/fstab and add new line:
>
>/path/to/FC-5-i386-DVD.iso /path/to/your/repo iso9660 ro,loop 0 0
>
>Configure yum to use your new repository
>
>edit /etc/yum.repos.d/fedora-core.repo
>
>comment out any line starting with baseurl or mirrorlist in the [core]
>repository section at the top
>
>add a new line:
>baseurl=file:///path/to/your/repo
>
>Using CD ISO images
> Note: I don't have the CD ISO images myself so I
>haven't tested this procedure with Fedora Core 5.
>
>Creating a repository from CD ISO images is somewhat more complicated, since
>there are multiple images. There are a number of approaches that
>could be taken to work around this:
>
>Use something like jigdo to create a single image equivalent to the
>DVD ISO (jigdo templates for Fedora Core 5 can be found
>at http://www.jburgess.uklinux.net/jigdo/index.html)
>
>Mount all of the CD images simultaneously and create a symlink farm
>to the packages on each CD
>Copy the packages from the CD images and make a local repo
>that's independent of the original CD images
>I've chosen to take the latter approach here.
>
>Create a directory on your system to hold the repository. It will
>need to be on a filesystem that has at least 3GB
>of free space. Then copy the RPM packages and comps.xml file
>from your CD images into it.
>
>
>
>
># mkdir -p /path/to/your/repo/RPMS
># cd /path/to/your/repo
># mkdir /mnt/cd1 /mnt/cd2 /mnt/cd3 /mnt/cd4 /mnt/cd5
>
># mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd1
># mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd2
># mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd3
># mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd4
># mount -r -o loop /mnt/d/cd/FC_5i386_1.iso /mnt/cd5
>
># cp disc*/Fedora/RPMS/* RPMS
># cp disc1/repodata/comps.xml /path/to/your/repo
>
>You no longer need the CD images, so you can unmount them
>and remove the mountpoint directories.
># umount cd*
># rmdir disc1 disc2 disc3 disc4 disc5
>
>Create the repository metadata.
># rpm -Uvh RPMS/createrepo*
># createrepo -g comps.xml /path/to/your/repo
>
>Configure yum to use your new repository
>
>edit /etc/yum.repos.d/fedora-core.repo
>
>comment out any line starting with baseurl or mirrorlist in the [core]
>repository section at the top
>
>add a new line:
>baseurl=file:///path/to/your/repo
>
>
>
>
>Using Add/Remove Software With No Network Connection
>If you want to use the Add/Remove Software application (pirut) with no
>network connection, you'll need to disable all of the yum repositories
>apart from your local one. By default, the only enabled repositories
>are core (which is now served by your local repository), updates,
>and extras. You can disable these repositories by changing the line
>enabled=1 to enabled=0 in /etc/yum.repos.d/fedora-updates.repo and /etc/yum.repos.d/fedora-extras.repo respectively.
>
>If at a later time you have an Internet connection available and
>would like to update your system or install something from Fedora
>Extras, you can enable these repositories on the yum command line
>without needing to edit the .repo files again, e.g.:
>
># yum --enablerepo=updates --enablerepo=extras update
># yum --enablerepo=updates --enablerepo=extras install somepackage
>
>расписано для fc5, но в fc6 так же.
>если будет ругаться на ключи , отключить проверку в repo-файлах и в
>yum.conf gpgcheck=0

Спасибо! Работает

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру