Sponsored Content
Full Discussion: Remove older kernel
Operating Systems Linux Red Hat Remove older kernel Post 302526156 by click on Monday 30th of May 2011 02:27:57 PM
Old 05-30-2011
You can remove just the kernel without the deps with the above example but that won`t free up much space. You should carefully look trough the dependences that will be removed with the obsolete kernel if they are obsolete too(not required by any current service you use) you can safely remove them - BE VERY CAREFUL!

p.s. The kernel-2.6.32 is not the full name of the package use

# rpm -qa | grep kernel

to find the full name of the package and try rpm -e with the full name
Also usually if there is a lot of dependencies you`re trying to remove the current kernel Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove the older files

Hi All, I need to remove some old files which the file creation date is older than a week. I've tried to use command: find . -atime +6 -exec rm{}. but it seems the creation date of files shown above were not as I expected. please your kind advice. Thanks. (1 Reply)
Discussion started by: Prasandha
1 Replies

2. Shell Programming and Scripting

Need to remove files older than 30 days except directories

Hi, I need to remove files (*.trc) which are older than 30 days from one location. My problem is there I do not want to visit any of the directories at that location. I want to search files at that particular location only (need to skip directorys at that location). maxdepth option is there... (6 Replies)
Discussion started by: malaymaru
6 Replies

3. Shell Programming and Scripting

script to remove files older than 60 days

Hi I need help in the script which looks at a contorl file which has a list of file names like xxxx.12345 and I want to take only xxxxx and search in a specific directory and remove the file if its older than 60 days I have written something like this.. but seems to be wrong... (1 Reply)
Discussion started by: antointoronto
1 Replies

4. UNIX for Dummies Questions & Answers

Compile most recent kernel on older distro ?

Debian lenny uses the 2.6.26 kernel by default. Can I compile the most recent kernel from kernel.org and use it instead ? Will the new kernel be incompatible with other installed softwares ? (1 Reply)
Discussion started by: cyler
1 Replies

5. UNIX for Advanced & Expert Users

How to Remove 180 days older non-empty directories

Hi Gurus, I have command to delete more than 180days file. find /home/abc/ -name "CBST_*.txt*" -mtime +180 | xargs -n 100 rm -f Now I would like to delete more than 180days Non empty directory--What will be command? Following is non empty directory as instance CBST2010* (2 Replies)
Discussion started by: thepurple
2 Replies

6. Shell Programming and Scripting

[Solved] Remove file older than 90 days

I have crontab job a tar file to a directory ( tar -cvf /tmp/backup/or.`date +%m%d%y`. /ora/db/* ) , it will do it every day . Now I don't want to keep too much files , I just want to keep the file for 90 days , can advise if I want to remove the backup file which are elder than 90 days , can... (1 Reply)
Discussion started by: ust3
1 Replies

7. Shell Programming and Scripting

Remove files older than 2 days.

Hi All, I am new to the scripting and using solaris 10 OS. Please suggest me from the below script which modifications need to be done to delete the files more that 2days older. Current script is deleting existing file. # Remove old explorer runs if needed DIR=`dirname ${EXP_TARGET}` if ... (2 Replies)
Discussion started by: Navkreddy
2 Replies

8. Shell Programming and Scripting

Remove lines older than 30 days

Hi Experts/Gurus, Is there a way to remove lines in a file that are older than x days (i.e. 30 days) based on the date stamp in the first column? Example. $ date Sat Jan 11 14:12:06 EDT 2014 $cat sample.txt 10-10-2013 09:00:01 AM|Line test 1234567 16-10-2013 08:30:00 AM|Line test... (6 Replies)
Discussion started by: brichigo
6 Replies

9. Solaris

Older OS support in Kernel zones

folks, I have a query. Can we create Kernel zone with the earlier Solaris OS? More precisely Can i create kernel zone with any different OS than that of OS in global zone. As of now in sol11U2 if we create kernel zone, there will be sol11u2 OS in kernel zone since the same is in global. But... (4 Replies)
Discussion started by: Vaishey
4 Replies

10. Shell Programming and Scripting

Remove lines having older end time

Hi, In my bash script I want to add a code which remove all entries older than x days. To simplify this problem, I have divided into 3 parts. (2 parts are done looking answer for 3rd part.) To find the latest log date - Done Latest_Time=`find . -name '*.tps' -exec sed '/endTime/!d; s/{//;... (3 Replies)
Discussion started by: Agoyals1986
3 Replies
RPM2PACO(8)							      System							       RPM2PACO(8)

NAME
rpm2paco - create paco logs from a local RPM database SYNOPSIS
rpm2paco [OPTIONS] <packages> DESCRIPTION
rpm2paco is a shell script that create paco(8) logs from rpm(8) ones. The newly created logs are placed into the paco log directory auto- matically. Is not mandatory to add the version suffix to the input packages, since rpm adds it automatically. OPTIONS
-a, --all Read the whole rpm database of the system, and create a paco log for each logged package. Warning: for more than a few packages, this may take a long time. -q, --quiet Be quiet, except for errors. -f, --force Force overwrite of any already logged package. By default they are skipped. -j, --sync-version Remove obsolete versions of the packages from the paco database. For instance, if foo-1.0 is beeing imported, and foo-2.4 is logged by paco but not by rpm, remove foo-2.4 from the paco database. -s, --strip-release Remove the release suffix from the name of the package (e.g. 'foo-1.0.2-2.1' --> 'foo-1.0.2'). -h, --help Print a usage message and exit. -v, --version Print version information and exit. WEB SITE
http://paco.sourceforge.net COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
paco(8), pacorc(5), superpaco(8), pacoball(8) paco-2.0.9 28 June 2010 RPM2PACO(8)
All times are GMT -4. The time now is 01:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy