Re: [CentOS] Re: Using Synaptic with Cent OS 4.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2006-11-14 at 06:49 -0500, Edward Diener wrote:
> Johnny Hughes wrote:
> > On Mon, 2006-11-13 at 17:07 -0500, Edward Diener wrote:
> >> Johnny Hughes wrote:
> >>> On Mon, 2006-11-13 at 13:07 -0500, Edward Diener wrote:
> >>>> Can Synaptic be used successfully on CentOS 4.4 instead of YumEx ? Are 
> >>>> there any issues using Synaptic with the CentOS 4.4 repositories ?
> >>>>
> >>> There is a version of apt and synaptic for i386 in the extras
> >>> repository... however I would not recommend it.  There are many plugins
> >>> for yum that work with yem/yumex that do not work for apt (fastest
> >>> mirror, protectbase, etc.,)
> >>>
> >>> So, things like 3rd Party repos and the like become more dangerous in
> >>> apt that with yum on CentOS.
> >>>
> >>> Also, apt is ONLY for 1386 distro as the version we have does not do
> >>> multilib arches.
> >> The reason I asked is because YumeEx 1.02 does not show the packages 
> >> which depend on a given package when I specify a package I want to 
> >> remove. In Synaptic when I specify that I want to remove a package I am 
> >> immediately shown the packages which depend on it and if I proceed to 
> >> remove it, Synaptic automatically removes those packages, but I can 
> >> choose to Cancel the removal immediately.
> >>
> >> It may be that in YumEx, after adding a package to be removed to the 
> >> Queue, does prompt one about the other packages which depend on that 
> >> package and automatically removes when I process the Queue, letting me 
> >> back out of the removal once I am prompted, but I did not try it for 
> >> fear that I might remove a package needed by other packages.
> >>
> >> In general I try to keep packages at a minimum for what I will actually 
> >> be using on a Linux system, and after an installation I go through the 
> >> packages installed and remove any extraneous ones. YumEx appears to make 
> >> this much harder than Synaptic. That is why I was hoping that I could 
> >> use Synaptic instead.
> >>
> > 
> > Yum can not remove items that are needed by other programs ... it will
> > fail the dependency checks.
> 
> That is good to know.
> 
> > 
> > One should not remove packages (IMHO) with any GUI tool.
> 
> I do not agree with this. In Synaptic I am always told which other 
> packages will be removed if I attempt to remove a given package, and I 
> am given the opportunity to back out of removing the package. OK, YumEx 
> does not have this functionality. It would be nice if it were addded, 
> but that is OK.
> 
> But leaving off our diagreement, how to I find out from yum itself what 
> other packages are dependent on a given package ? I could not find a 
> simple yum command which will tell me this for a given package. The only 
> related yum command seems to tell me what packages a given package 
> depends on, but that is not the same thing about which I am asking.
> 

If you run the command:

yum remove package_name

It will tell you what else it wants to remove and ask for conformation.
Yum will not leave requires not meet.

Example:

"yum remove postgresql"

Result:

Loading "fastestmirror" plugin
Loading "changelog" plugin
Loading "priorities" plugin
Loading "downloadonly" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql.i386 0:8.1.4-1.centos.1 set to be erased
--> Running transaction check
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00
fasttrack                 100% |=========================|  951 B    00:00
kbs-CentOS-Misc           100% |=========================|  951 B    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
kbs-CentOS-Extras         100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Determining fastest mirrors
Reading repository metadata in from local files
Excluding Packages from Dag-EL4
Finished
1225 packages excluded due to repository priority protections
Excluding Packages from Dag-EL4
Finished
0 packages excluded due to repository priority protections
--> Processing Dependency: postgresql for package: freeradius-postgresql
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-pl
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-devel
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-contrib
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-test
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-server
--> Processing Dependency: postgresql = 8.1.4-1.centos.1 for package: postgresql-docs
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package postgresql-test.i386 0:8.1.4-1.centos.1 set to be erased
---> Package postgresql-pl.i386 0:8.1.4-1.centos.1 set to be erased
---> Package postgresql-server.i386 0:8.1.4-1.centos.1 set to be erased
---> Package postgresql-devel.i386 0:8.1.4-1.centos.1 set to be erased
---> Package postgresql-contrib.i386 0:8.1.4-1.centos.1 set to be erased
---> Package freeradius-postgresql.i386 0:1.0.1-3.RHEL4.3 set to be erased
---> Package postgresql-docs.i386 0:8.1.4-1.centos.1 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 postgresql              i386       8.1.4-1.centos.1  installed          10 M
Removing for dependencies:
 freeradius-postgresql   i386       1.0.1-3.RHEL4.3   installed         6.8 k
 postgresql-contrib      i386       8.1.4-1.centos.1  installed         1.0 M
 postgresql-devel        i386       8.1.4-1.centos.1  installed         3.5 M
 postgresql-docs         i386       8.1.4-1.centos.1  installed          13 M
 postgresql-pl           i386       8.1.4-1.centos.1  installed         133 k
 postgresql-server       i386       8.1.4-1.centos.1  installed         9.6 M
 postgresql-test         i386       8.1.4-1.centos.1  installed         4.7 M

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       8 Package(s)
Total download size: 0
Is this ok [y/N]: N
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

That will remove pacakges (or tell you what depends on the package you
try to remove.


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux