using zypper it cannot find all packages in my repository
I have tried to delete /etc/zypp, and recreate the repositories again. Still same problem persist.
machine1:~ # zypper install --force gcc49
Loading repository data…
Reading installed packages…
Package gcc49-4.9.2-2companyBuild.x86_64 not found in repositories, cannot reinstall.
However if I enter into YaST => Software Management, I am able to find the package under this repository, and able to forcefully reinstall it.
How come zypper cannot find the package?
Using SUSE Linux Enterprise Server 11. Not sure where to look for discrepancies on the system.
I have tried to clean with zypper clean -all and rpmdb --rebuilddb. I tried these commands on one server and it worked there, but only there. Other servers still have the problem with zypper cannot find the package.
This works fine on SLES 11 SP3, but fails on SLES 11. I know SP3 has zypper 1.6.326, while SLES 11 has version 1.0.13.
The repository is comprized of two symlinks
/repo/sles11/dir1 => /dir1
/repo/sles11/dir2 => /dir2
It finds the packages from dir2, but not dir1. The access is the same on each symlink and underlying directories. The repodata/filelist.xml.gz contains all the packages from both these directories. Still zypper cannot find all, but YaST does.
Is there any manual procedures I can try to clean out everything (short of doing a reinstall) ?
[QUOTE=malcolmlewis;35209]Hi
If you use zypper to search for gcc, sure your using the correct name for the package?
Have you run zypper --clean
What it the output from zypper lr -d[/QUOTE]
I am using the correct name for the package. Zypper cannot find the package when I try to forcefully update it.
machine1:~ # zypper install --force gcc49
Loading repository data...
Reading installed packages...
Package gcc49-4.9.2-2comp.x86_64 not found in repositories, cannot reinstall.
Resolving package dependencies...
On packages that are installed from that repository
machine1:~ # zypper info gcc49
Loading repository data...
Reading installed packages...
Information for package gcc49:
Repository: @System
Name: gcc49
Version: 4.9.2-2comp
Repository: @System
Name: gcc49
Version: 4.9.2-2comp
Arch: x86_64
Vendor:
Installed: Yes
Status: up-to-date
Installed Size: 141.3 M
Summary: The GNU C Compiler and Support Files
Description:
Core package for the GNU Compiler Collection, including the C language
frontend.
Language frontends other than C are split to different sub-packages,
namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
gcc-obj-c++.[/CODE]
I removed the gcc49 package, then zypper info list it under the right repository.
machine2:~ # zypper info gcc49
Loading repository data...
Reading installed packages...
Information for package gcc49:
Repository: F1-sle110
Name: gcc49
Version: 4.9.2-2comp
After regular install without force this time, the Repository is back on @System with zypper info.
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.34-33-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Wonder if it’s related to the vendor change…
[/QUOTE]
machine2:~ # zypper install --from F1-sle110 --force gcc49
Loading repository data...
Reading installed packages...
Package gcc49-4.9.2-2comp.x86_64 not found in repositories, cannot reinstall.
Resolving package dependencies...
Nothing to do.
machine2:~ # zypper install --repo F1-sle110 --force gcc49
Loading repository data...
Reading installed packages...
Package gcc49-4.9.2-2comp.x86_64 not found in repositories, cannot reinstall.
Resolving package dependencies...
Nothing to do.
We have also some inhouse built packages which have the same problem, if they have already been installed. It is the --force that causes problem.
I am able to remove gcc49, then reinstall it, but not able to use --force.