Sponsored Content
Full Discussion: Remove older kernel
Operating Systems Linux Red Hat Remove older kernel Post 302528013 by click on Monday 6th of June 2011 08:20:02 AM
Old 06-06-2011
Does

Code:
# yum clean all

Helps?

And yes you can free space by removing old kernels and packages, but you have to be careful.
 

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
yum(8)																	    yum(8)

NAME
yum - Yellowdog Updater Modified SYNOPSIS
yum [options] [command] [package ...] DESCRIPTION
yum is an interactive, automated update program which can be used for maintaining systems using rpm command is one of: * install package1 [package2] [...] * update [package1] [package2] [...] * check-update * upgrade * remove [package1] [package2] [...] * list [...] * info [...] * provides [...] * clean [packages | headers | old-headers | all] Unless the --help or -h option is given, one of the above commands must be present. install is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. update If run without any packages, update will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. check-update Implemented so you could know if your machine had any updates that needed to be applied without running it interactively. Returns exit value of 100 if there are packages available for an update. Also returns a list of the pkgs to be updated in list format. Returns 0 and no packages are available for update. upgrade takes no arguments, this performs a complete upgrade of the system - good for distro-version changes as it includes packages obso- leting other packages in its updating calculations. remove is used to remove the specified packages from the system as well as removing any packages which depend on the package being removed. list can be used to list various information about available packages; more complete details are available in the List Options section below. provides can be used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file. info can be used to list a description and summary information about available packages; takes the same arguments as in the List Options section below. clean is used to clean up various things which accumulate in the yup cache directory over time. More complete details can be found in the Clean Options section below. GENERAL OPTIONS
Most command line options can be set using the configuration file as well and the descriptions indicate the necessary configuration option to set. -h, --help Help; display a help message and then quit. -y Assume yes; assume that the answer to answer to any question which would be asked is yes. Configuration Item: assume-yes -r Replace conflicting files (equivalent to the RPM option of '--replacefiles --force'). Attention, this has a high 'shoot your own foot' possibility. Configuration Item: replacefiles -c [config file] Specifies the config file location. -d [number] Sets the debugging level to [number] - turns up or down the amount of things that are printed. -e [number] Sets the error level to [number] 0 - 10. 0 means print only critical errors about which you must be told. 1 means print all errors, even ones that are not overly important. 1+ means print more errors (if any) -e 0 is good for cron jobs. -t Tells yum to be tolerant of errors on the command line with regard to packages on the commandline. For example: if you request to install foo, bar and baz and baz is installed; yum won't error out complaining that baz is already installed. -R [time in minutes] Sets the maximum amount of time yum will wait before performing a command - it randomizes over the time. -C Tells yum to run entirely from cache - does not download or update any headers unless it has to to perform the requested action. LIST OPTIONS
The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the version of the package. yum list [available] list all packages in the yum repositories available to be installed. yum list updates list all packages with updates available in the yum repositories. yum list [args] list the packages specified by args. If an argument does not match the name of a package, it is assumed to be a shell-style glob and any matches are printed. yum list installed list the packages specified by args. If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed. yum list extras list the packages installed on the system that are not available in any yum repository listed in the config file. CLEAN OPTIONS
The following are the ways which you can invoke yum in clean mode. yum clean packages Eliminate any cached packages from the system. Note that packages are not automatically deleted after they are downloaded. yum clean headers Eliminate all of the files which yum uses to determine the remote availablility of packages. Using this option will force yum to download all the headers the next time it is run. yum clean oldheaders Eliminate the old headers that yum no longer needs to determine the remote availablility of packages. yum clean [all] Runs yum clean packages and yum clean oldheaders as above. MISC
Proxy configuration If you would like to use a proxy with yum you can simply set a shell environment variable of http_proxy. Set it to the url for your proxy. Ex: "http://your_proxy:port/" FILES
/etc/yum.conf /var/cache/yum/ SEE ALSO
yum-arch (8), yum.conf (5) AUTHORS
Seth Vidal <skvidal@phy.duke.edu> BUGS
There of course aren't any bugs, but if you find any, they should be sent to the mailing list: yum@dulug.duke.edu Seth Vidal 2002 Jun 8 yum(8)
All times are GMT -4. The time now is 11:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy