Let’s assume you need to install rpm/package
“xorg-x11-apps-7.6-6.el6.x86_64”
[root@tst:/root]4
[root@tst:/root]4 rpm -qa | grep -i xorg-x11-apps-7.6-6.el6.x86_64
>> first step is to grep either the
package installed or not .
[root@tst:/root]5 rpm -qa | grep -i xorg-x11-apps*
>>if packages was installed
with different version it wont show since your checking with
particular version .so lets grep with just package name . nothing coming up so it means no package was installed
[root@tst:/root]7 yum install xorg-x11-apps-7.6-6.el6.x86_64
>> when you do yum install
package name it will get installed if the package is available in repo.
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.6-6.el6 will be
installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================================================================================================
Installing:
xorg-x11-apps
x86_64
7.6-6.el6
oel6_latest_x86_64 276
k
Transaction Summary
============================================================================================================================================================================================================================================
Install 1 Package(s)
Total download size: 276 k
Installed size: 705 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing :
xorg-x11-apps-7.6-6.el6.x86_64
1/1
Verifying :
xorg-x11-apps-7.6-6.el6.x86_64
1/1
Installed:
xorg-x11-apps.x86_64 0:7.6-6.el6
Complete!
What will happen if packages is
not at all installed and we are trying to do yum update with that package name
? see below
[root@tst:/root]6 yum update xorg-x11-apps-7.6-6.el6.x86_64
>> if your trying to do yum update , it
won’t installed/update since nothing is already installed . yum update will
works only when package was already installed and latest version is available .
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Update Process
Package(s) xorg-x11-apps-7.6-6.el6.x86_64 available, but
not installed.
No Packages marked for Update
what will happen if you do yum
install when its already installed ?
[root@tst:/root]8 yum install xorg-x11-apps-7.6-6.el6.x86_64
>> it will say package already installed
and latest version .
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Package xorg-x11-apps-7.6-6.el6.x86_64 already installed
and latest version
Nothing to do
What will happen if you do yum
update with package name ?
[root@tst:/root]9 yum update xorg-x11-apps-7.6-6.el6.x86_64
>> you can see here , when you do yum
update its getting updated it means package was installed but its not latest
and its getting updated to latest version .
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.6-6.el6 will be
updated
---> Package xorg-x11-apps.x86_64 0:7.7-6.el6 will be an
update
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================================================================================================
Updating:
xorg-x11-apps
x86_64
7.7-6.el6
ol6_latest_x86_64 276 k
Transaction Summary
============================================================================================================================================================================================================================================
Upgrade 1 Package(s)
Total download size: 276 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating :
xorg-x11-apps-7.7-6.el6.x86_64
1/2
Cleanup :
xorg-x11-apps-7.6-6.el6.x86_64
2/2
Verifying :
xorg-x11-apps-7.7-6.el6.x86_64
1/2
Verifying :
xorg-x11-apps-7.6-6.el6.x86_64
2/2
Updated:
xorg-x11-apps.x86_64 0:7.7-6.el6
Complete!
What will happen if you do yum
update when package is already latest version ?
[root@tst:/root]12 yum update xorg-x11-apps
>> it will show as nothing marked to
update . it means no new versions are available already package is to latest
version .
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Update Process
No Packages marked for Update
What will happen if you do yum
install if its already installed ?
[root@tst:/root]13 yum install xorg-x11-apps-7.7-6.el6.x86_64
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Package xorg-x11-apps-7.7-6.el6.x86_64 already installed
and latest version
Nothing to do
Now let’s do remove the
package and see other scenarios ..
[root@tst:/root]14 yum remove xorg-x11-apps-7.7-6.el6.x86_64
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.7-6.el6 will be
erased
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================================================================================================
Removing:
xorg-x11-apps
x86_64
7.7-6.el6
@ol6_latest_x86_64 704 k
Transaction Summary
============================================================================================================================================================================================================================================
Remove 1
Package(s)
Installed size: 704 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : xorg-x11-apps-7.7-6.el6.x86_64
1/1
Verifying : xorg-x11-apps-7.7-6.el6.x86_64
1/1
Removed:
xorg-x11-apps.x86_64 0:7.7-6.el6
Complete!
Lets do yum install with bit
older version
[root@tst:/root]15 yum install xorg-x11-apps-7.6-6.el6.x86_64
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.6-6.el6 will be
installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================================================================================================
Installing:
xorg-x11-apps
x86_64
7.6-6.el6
ol6_latest_x86_64 276
k
Transaction Summary
============================================================================================================================================================================================================================================
Install 1 Package(s)
Total download size: 276 k
Installed size: 705 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing :
xorg-x11-apps-7.6-6.el6.x86_64
1/1
Verifying :
xorg-x11-apps-7.6-6.el6.x86_64
1/1
Installed:
xorg-x11-apps.x86_64 0:7.6-6.el6
ok so package was installed but
as we know its bit older version and latest version is available in repo
. then what will happen if we do just yum update ?
Complete!
[root@tst:/root]16 yum update
>> you can see below “xorg” package
getting updated though we didn’t mention about the package name . it means when
we do yum update it will update all the packages to latest version as available
in our repo .
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-apps.x86_64 0:7.6-6.el6 will be
updated
---> Package xorg-x11-apps.x86_64 0:7.7-6.el6 will be
an update
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================================================================================
Package
Arch
Version
Repository
Size
============================================================================================================================================================================================================================================
Updating:
xorg-x11-apps
x86_64
7.7-6.el6
ol6_latest_x86_64 276 k
Transaction Summary
============================================================================================================================================================================================================================================
Upgrade 1 Package(s)
Total download size: 276 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating :
xorg-x11-apps-7.7-6.el6.x86_64
1/2
Cleanup :
xorg-x11-apps-7.6-6.el6.x86_64
2/2
Verifying :
xorg-x11-apps-7.7-6.el6.x86_64
1/2
Verifying :
xorg-x11-apps-7.6-6.el6.x86_64
2/2
Updated:
xorg-x11-apps.x86_64 0:7.7-6.el6
Complete!
[root@tst:/root]17
Hope this helps you on how to you use yum . comment below for anything .
No comments:
Post a Comment