Yum-y Install wget
#yum Install Perl
Searching for GCC ... The path "is not a valid path to the GCC binary. Would is it? [Yes] If this is the case, GCC does not have yum install GCC make the searching for a valid kernel header path ... The path "is not valid. Would is it? [Yes] If this is the case, the Kernel-devel package does not have a Yum install kernel-devel installed, if you have not yet searched for Kernel-header, try to restart, and then run it again.
vmware-install.pl
#yum Install Perl to
---firewall port
/etc/init.d/iptables stop
/etc/init.d/iptables status
Http://www.cnblogs.com/chusiping/archive/2011/11/10/2243805.html
Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat and SuSE. Based on RPM package management, the ability to automatically download the RPM package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without the tedious download and installation. Yum provides commands to find, install, and delete one, a group, or even all of the packages, and the commands are concise and well-remembered.
Yum's command form is generally as follows: Yum [options] [command] [package ...] where the [options] is optional, options include-H (Help),-y (when the installation process prompts you to select all "Yes"),- Q (does not show the installation process) and so on. [command] for the action you want to take, [package ...] Is the object of the operation.
Summarizes some of the commonly used commands include:
Automatic search for the fastest image plugin: Yum install yum-fastestmirror installing the Yum Graphics plugin: Yum install Yumex View a list of possible bulk installs: Yum grouplist
1 Installing Yum Install all install yum install Package1 install the specified installation package package1 Yum groupinsall group1 Setup Group group1
2 Update and upgrade Yum update all update yum update package1 update specifies package package1 yum check-update check for updatable programs Yum Upgrade PACKAGE1 upgrade specified package Package1 Yum groupupdate group1 upgrade program group Group1
3 Find and show Yum info package1 display installation package information Package1 Yum list shows all installed and installable packages Yum List Package1 Displays the installation of the specified package Package1 yum GroupInfo g Roup1 Display program group group1 information Yum Search string finds the installation package based on the keyword string
4 Remove Programs yum Remove & #124; Erase Package1 Remove Package package1 yum groupremove group1 Remove program group group1 yum deplist package1 View program Package1 dependencies
5 Clear Cache Yum Clean packages clears the cache directory for packages under Yum Clean headers clear Cache directory under Headers Yum clean oldheaders Clear Cache directory under old headers Yum Cleaner, Yum Clean All (= Yum packages; yum clear oldheaders) clears the cache directory of packages and the old headers
For example, to install a game program group, first look for: #:yum grouplist can be found, the installable game package name is "games and entertainment", so that you can install: #:yum groupinstall Entertainment "All the game packages are installed automatically. Here the name of games and entertainment must be selected in double quotes, because Linux encounters a space below that the file name ends, so you must tell the system that the package name is "games and entertainment" instead of "games."
In addition, you can modify the configuration file/etc/yum.conf Select the installation source. It can be seen how easy it is to configure the Yum program. More detailed options and commands, of course, just below the command prompt line: Man yum
Yum Groupinstall "KDE (K Desktop environment)"
Yum Install Pirut k3b mikmod
Yum Groupinstall "Server Configuration Tools"
Yum Groupinstall "Sound and Video"
#yum groupinstall "GNOME Desktop Environment"
Yum Groupinstall "Legacy software Support"
Yum Groupinstall "Development Libraries"
Yum Groupinstall "Development Tools"
#yum groupinstall "Windows File Server"
Yum Groupinstall "System Tools"
Yum groupinstall "X window System"
Yum install php-gd yum install gd-devel yum groupinstall "Chinese support"
#yum Install Samba-common//The execution installs Samba-client #yum installed Samba
Yum install gcc yum install CPP yum install gcc-c++ yum install ncurses yum install ncurses-devel yum install gd-devel PHP -GD Yum install gd-devel yum install gcc yum install CPP yum install gcc-c++ yum install ncurses yum install Ncurses-devel Yum install gd-devel php-gd yum install gd-devel yum install zlib-devel yum install freetype-devel Freetype-demos Freetyp E-utils Yum install libpng-devel libpng10 libpng10-devel yum install libjpeg-devel yum install ImageMagick yum install PHP -GD Yum Install flex yum Install Imagemagick-devel
#yum Install system-config-bind #yum groupinstall "DNS Name Server"//install BIND and Bind-chroot kit Yum Groupinsta ll "MySQL Database"
Yum Clean All
-----------------------------------------------------------------------------------------------------------
It's a tricky thing to have a Fedora Linux that can't be entered in Chinese, and even search solutions can't be searched. Can only reluctantly use a few pinyin to take a chance, see Google can recognize. And that's what I met. Solution: Yum Install scim*-y
Yum Command detail: Redhat and Fedora Software Installation command is RPM, but the biggest trouble with RPM installation software is the need to manually find a series of dependencies required to install the software, Super trouble not to say, If the software does not need to uninstall the removal of a dependency caused by the other software can not be used is very annoying. Happily, Fedora finally introduced the command yum similar to apt in Ubuntu, making Fedora software easy to install. Yum has the following features: * Can be configured at the same time multiple resource pool (Repository) * Concise configuration file (/etc/yum.conf) * Automatically resolve the dependency problem when adding or removing RPM packages * Easy to use * maintain consistency with RPM database yum, is yellow The short name of dog Updater modified, originally developed by Yellow, a developer of the distribution of soft, was written in Python, then called yup (Yellow Dog Updater), and later by Duke University's[email protected]The development team has made improvements, hence the name. Yum's mission is to automate upgrades, install/remove RPM packages, collect information about RPM packages, check dependencies and automatically prompt users to resolve them. Yum's key is to have a reliable repository, as the name implies, this is the repository of software, it can be an HTTP or FTP site, can also be a local software pool, but must contain the RPM header, header includes the RPM package of various information, including description, function, Provide files, dependencies, etc. it is by collecting these headers and analyzing them that the remaining tasks can be completed automatically. 1.yum of all configuration information is stored in a configuration file called yum.conf, usually located in the/etc directory, this is the whole Yum system is the most heavy, I looked at the F9 in the file, we look together: [[email protected] F9 Common documents]$ sudo more/etc/yum.conf [main] Cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log Exactarch=1 Obsoletes=1 gpgcheck=1 Plugins=1 metadata_expire=1800 # PUT YOUR REPOS here OR in separate files named File.re PO # IN/ETC/YUM.REPOS.D
The following is a brief description of the file: Cachedir:yum cache directory, yum stores downloaded RPM packages and databases, typically/var/cache/yum. DebugLevel: Debug level, 0──10, default is 2 Logfile:yum log file, default is/var/log/yum.log. Exactarch, there are two options 1 and 0, which represents whether to upgrade only the packages that are consistent with your installation of the package CPU, and if set to 1, if you install a i386 rpm, Yum will not upgrade with a 686 package. The gpgchkeck= has 1 and 2 choices, which represent whether or not GPG verification is performed, and if not, the default seems to be checked. 2. Well, the next is the use of Yum, first with Yum to upgrade the software, yum operation must have superuser privileges, of course, can use sudo. Yum update, this step is necessary, Yum will download the RPM header from the server header directory, placed in the local cache, which may take a certain amount of time, but it is more convenient than Yum, what is the cost of these times? After the header has been downloaded, yum will determine if there is an updatable package, if so, it will ask your opinion, whether it is updated, or y, it is always good to keep the system up to date, and Yum begins to download the package and use the call RPM installation, which may take some time, Depending on the number of software to be updated and the network condition, if the network is broken, it doesn't matter, do it again. Upgrade completed, every day as long as the use of Yum check-update check if there is a new, if any, with Yum update with the new, always keep the system up-to-date, blocking all the loopholes found. Upgrade a separate package with the Yum update packagename. Now a simple list of some of the Yum software upgrade commands: (update: I was installed in the wine with a RPM one installed, first installed relations, and then install wine in the main package, but just in the forum found a good post on Yum Local installation. The parameter is-localinstall $yum localinstall wine-* this way, Yum automatically installs all dependencies without having to install the RPM one, saving a lot of work. There is a similar parameter to him: $yum localupdate wine-* If there is a new version of wine, and you also download the local, you can update wine locally. )
1. List all updatable software inventory commands: Yum check-update
2. Install all UPDATE software commands: Yum update
3. Install only the specified software commands: Yum install
4. Update only the specified software commands: Yum update
5. List all installed software inventory commands: Yum list
3. Installing and uninstalling the software using Yum is provided that the Yum installed packages are in RPM format. Install the command is, yum install Xxx,yum will query the database, there is no such package, if any, then check its dependency conflict, if there is no conflict-dependent, then it is best to download the installation, if there is, will be prompted to ask whether you want to install dependencies at the same time, or delete conflicting packages, You can make your own decisions. Delete the command is, yum remove xxx, as with the installation, Yum will also query the database, giving a hint to resolve the dependency. 1. Installing the package with yum command: Yum install
2. Remove package commands with Yum: Yum remove
4. Find the software you want to install with Yum we often encounter this situation, want to install a software, only know that it is related to a certain aspect, but do not know exactly its name. This is when Yum's query function works. You can use the Yum search keyword command to search, such as we want to install a instant Messenger, but do not know exactly what, it may be possible to use the Yum search Messenger, such as the search for a command, Yum searches all available rpm descriptions, lists all the RPM packages that are described in the Messeger, so we may get gaim,kopete and so on and choose from them. Sometimes we have a package installed, but we do not know its purpose, we can use Yum Info packagename This command to get information. 1. Use Yum to find the package command: Yum Search 2. Lists all installable package commands: Yum list 3. List all updatable package commands: Yum list updates 4. List all installed packages commands: Yum list installed 5. List all packages installed but not in Yum Repository command: Yum list Extras 6. Lists the specified package commands: Yum list 7. Use Yum to get package information commands: Yum info 8. List information for all packages command: Y Um info 9. Lists all updatable package information commands: Yum info updates 10. Lists all installed package information commands: Yum info installed 11. List all packages installed but not in Yum Repository command : Yum Info Extras 12. Lists which file commands are provided by the package: Yum provides
5. Clear Yum Cache Yum stores the downloaded packages and headers in the cache without deleting them automatically. If we feel that they are taking up disk space, you can use the Yum Clean command to clear it, and more precisely use Yum clean headers to clear Header,yum clean packages clear the downloaded RPM package, yum clean all clears all 1. Clear the Package command under the cache directory (/var/cache/yum): Yum Clean Packages
2. Clear the headers in the cache directory (/var/cache/yum)
Order: Yum Clean headers
3. Clear the old headers from the cache directory (/var/cache/yum)
Order: Yum Clean oldheaders
4. Clear the Cache directory (/var/cache/yum) package and the old headers
Command: Yum clean, yum clean all (= Yum clean packages; yum clean oldheaders)
The use of all of the above command parameters can be viewed with man: 1, install the graphical version Yumex:yum installed Yumex. 2. Install additional repositories: Rpm.livna.org Package Warehouse: Rpm-ivh http://livna-dl.reloumirrors.net ... ease-7-2.noarch.rpm
Freshrpms.net Package Warehouse: Rpm–ivh http://ftp.freshrpms.net/pub/fre ... 1.1-1.fc.noarch.rpm
3. Installing the fastest source yum install Yum-fastestmirror
Resources are really very rich, from CentOS to Ubuntu,iso image, upgrade package, everything, hand-handed brothers are really happy, envy ah. But fortunately, we are at least in the education network, make it can also touch a light, download some. The website is: ftp://ftp.sjtu.edu.cn/
The corresponding Yum repo is [updates] name=fedora updates baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$ Basearch/enabled=1 gpgcheck=0 [Fedora] Name=fedora $releasever-$basearch Baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux /releases/$releasever/everything/$basearch/os/enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-fedora File:///etc/pki/rpm-gpg/RPM-GPG-KEY
If the APT Manager is installed on the machine, the corresponding source is REPOMD ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$ (VERSION)/$ (ARCH)/
REPOMD ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$ (VERSION)/everything/$ (ARCH)/os/
This is somewhat different from the format of the previous Yum source and needs to be noted. Here's a look at the installation of SCIM under Fedora
1. What input method is right for me? Fcitx and SCIM is a good input method at present, but their characteristics are different, FCITX can only input Chinese, and SCIM can be based on the need to use different codes to express to China and Britain ... And so on input problems in various languages. If you only understand Chinese, or just input English & Chinese, then FCITX is a good choice, because it is beautiful, small, practical. If you still need to enter Japanese or other languages, you should install SCIM. Through reasonable configuration, he can let you like in Windows, want to enter what language can enter what language, the same language want to use what Input method is used. SCIM is very strong, and relatively stable, I choose is SCIM. 2. What do I need to prepare before installing a new input method? If you choose Fcitx or SCIM, then I suggest you delete the system's own Chinese input method. Here's how: Rpm–qa | grep IIIMF | Xargs Rpm–e Rpm–qa | grep chinput| Xargs Rpm–e If there is a line prompt rpm:no packages given for erase that means that you do not have the input method inside your system, do not worry, continue to look down on the line. Description: Rpm–qa is a list of all installed RPM packages, and grep IIIMF is the choice of those packages whose names contain IIIMF, Xargs rpm–e means to remove the packages listed earlier. Xargs's role is to put the front through | The data passed in as a parameter to the following command. This is like a filter, the first is to put all the installation package, and then grep, leaving only the RPM package containing some specific keywords, and then through the combination of Xargs and rpm–e, the rest of the package containing a particular keyword deleted. This will achieve the purpose of deleting the input method and related packages. The same is true of the following chinput, which is not repeated here. If you also installed other input method, such as you originally installed is FCITX, now want to install SCIM, then you'd better imitate the above look to fcitx Delete, the method is to change the location of IIIMF to FCITX on it. Before installing the new input method, it is best to do this, because there are many input methods there is no benefit of a system, you can only use one, and they also exist at the same time may have problems, think and know, will compete with each other. So after that, you should ensure that there is no Chinese input method in the system. Verified by a similar way: Whereis fcitx whereis scim whereis minichinput ...
3. When was the input method called by the system? Many people do not know when the input method is loaded in the end, do not know this of course do not know why the input method is not available at some time (because there may not be a call), of course, will not know how to configure to meet their own requirements. As we all know, there are two desktop systems, GNOME and KDE, which are more commonly used under Linux, it doesn't matter, they are all on the X system. Simply put, the X-System is one of the most central and lowest-level desktop systems, GNOME or KDE, or whatever fvwm, is just another layer of software between the X system and the user. So to achieve no matter what desktop system, can be transferred into the input method, is to start the X system, let the input method also start up, then, regardless of whether you use GNOME or KDE or other desktop, can be transferred into the input method. Because the X system has been started and the input method has been transferred into the system when it is time to start. So how does the X system start? Let's start with the startx. No matter what desktop system you use, it is started by startx, so what is STARTX? An application or a script file? Why is it able to start various desktop systems and can be set according to the corresponding configuration file? With doubt, I entered Whereis startx inside the console. After finding the path to store the STARTX, open it with the editor and discover that it was a script file. The contents of this script file may differ depending on the distribution, if you understand some of the shell language, then you can try to see, not necessarily all understand, but you will see in the end there is a xinit command, followed by some parameters. I tried to enter xinit under the console (note, do not do this in the graphical interface) to find the graphical interface to start pull, but very ugly, what function is not, the mouse can move, there is a small window to enter the command. How do I get out? Ctrl+alt+backspace. So, StartX is just a script that starts with the Xinit command to start the graphical interface by analyzing settings for a series of configuration files. Whether it's KDE or GNOME, it's done in this script. So let's open the StartX script and see what else is going on inside. You take a closer look, you will find a thing is very conspicuous, is/etc/x11/xinit/xinitrc, this xinitrc seems very familiar, in the configuration input method of the other paste is always seen, here appears must be inside run this script. Look at some other things, in fact, use the shell to configure a xinit boot parameters, to configure the desktopIt is used by the system without care. It is now known that STARTX is going to execute a/ETC/X11/XINIT/XINITRC script and let's open it to see what's inside. Open a look, where I feel most valuable, is a for loop, and he sequentially executes all the scripts under/etc/x11/xinit/xinitrc.d/. You can look for it patiently, and you'll find it. So what does this directory contain? There is a file to see the name to know and input related, his name is XInput. Wait, let's get a haircut, how do we get from startx to XInput? The first is to execute startx this script file, inside he will execute xinitrc this script, and then xinitrc inside the script, called XInput. OK, let's go, open the xinput and see. 4. Install the package RPM-UVH scim-0.8.2-1.i586.rpm RPM-UVH scim-chinese-0.2.6-1.i586.rpm
5. Modifying the configuration file the next important step is to modify the/etc/x11/xinit/xinitrc.d/xinput file so that the SCIM starts when X starts. I see a lot of articles on the internet also said, but always to no avail, after their own experiment, the simplest is to replace the chinput in the XInput file with Scim,chinput replaced by SCIM, save restart X can be. zh_cn*) if [-E/USR/BIN/SCIM]; Then xim= "SCIM" elif [-e/usr/x11r6/bin/xcin]; Then export LC_CTYPE=ZH_CN. GB2312 xim= "XCIN-ZH_CN. GB2312 "FI;;
..............................
SCIM) Xim_program=scim xim_args= "-D";;
Then modify/etc/gtk-2.0/gtk.immodules to find this line: "Xim" "x input Method" "Gtk20" "/usr/share/locale" "Ko:ja:zh" instead: "Xim" "x input Met Hod "" Gtk20 ""/usr/share/locale "" En:ko:ja:zh "may indicate that the input method is also used when entering English
After installation, run Scim-setup, change the input method switch key to Ctrl+space
Http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html
Wget is a free tool that automatically downloads files from the Web, supports downloads via HTTP, HTTPS, FTP three most common TCP/IP protocols, and can use HTTP proxies. The origin of the wget name is the combination of "World Wide Web" and "get".
wget although powerful, but it is relatively simple to use, The basic syntax is: wget [parameter list] URL. Here are some examples to illustrate the use of wget. 1, download the entire HTTP or FTP site. wget http://place.your.url/here This command can download the Http://place.your.url/here home page. Using-X forces a directory to be identical on the server, and if you use the-nd parameter, all content downloaded by the server is added to the local current directory.
Wget-r http://place.your.url/here This command will follow the recursive method, download all the directories and files on the server, the essence is to download the entire site. This command must be used with caution, because at the time of download, all the addresses that the downloaded site points to are also downloaded, so if the site references other sites, the referenced sites will be downloaded as well! For this reason, this parameter is not commonly used. You can use the-l number parameter to specify the level of the download. For example, to download only two tiers, use-l 2.
If you want to create a mirror site, you can use the-m parameter, for example: Wget-m Http://place.your.url/here then wget will automatically determine the appropriate parameters to make the mirror site. At this point, wget will log on to the server, read into the robots.txt and follow the robots.txt rules.
2, the breakpoint continues to pass. When the file is particularly large or the network is particularly slow, often a file has not been downloaded, the connection has been cut off, at this point, the need to continue to pass the breakpoint. Wget's breakpoint continuation is automatic, only need to use the-c parameter, for example: wget-c http://the.url.of/incomplete/file use a breakpoint to continue to require the server to support the continuation of a breakpoint. The-t parameter indicates the number of retries, such as the need to retry 100 times, then write-T 100, if set to-T 0, indicates an infinite retry until the connection succeeds. The-t parameter indicates a time-out wait, such as-t 120, which means that waiting for 120 seconds does not connect even if it times out.
3, Bulk download. If you have more than one file to download, you can generate a file, write one line for each file URL, such as generate file Download.txt, and then use the command: Wget-i download.txt This will download each URL listed in Download.txt. (If the column is a file to download the file, if the column is a site, then download the first page)
4, Selective download. You can specify that you want wget to download only one type of file, or not to download it. For example: wget-m–reject=gif http://target.web.site/subdirectory means to download http://target.web.site/subdirectory, but ignores GIF files. –accept=list can accept the file type, –reject=list rejects the accepted file type.
5, Password and authentication. Wget can only handle websites that restrict access using username/password, you can use two parameters: –http-user=user set HTTP user –http-passwd=pass set HTTP password for sites that require certificates to be authenticated, you can only use other download tools, such as curl.
6, the use of Proxy server for download. If the user's network needs to go through a proxy server, then you can let wget through the proxy server for file download. At this point, you need to create a. wgetrc file in the current user's directory. A proxy server can be set up in a file: Http-proxy = 111.111.111.111:8080 ftp-proxy = 111.111.111.111:8080 Proxy server for HTTP and proxy server for FTP. If the proxy server requires a password use: –proxy-user=user set the proxy user –proxy-passwd=pass set the proxy password for both parameters. Use the parameter –proxy=on/off or close the agent. Wget also has a lot of useful features that users need to dig into.
Appendix:
Command format: wget [parameter list] [target software, Web page URL]
-v,–version Displays the software version number and then exits;-h,–help displays software help information;-e,–execute=command executes a ". Wgetrc" command
-o,–output-file=file saves the software output information to a file,-a,–append-output=file appends the software output information to the file,-d,–debug displays the output information;-q,–quiet does not display the output information;-i,– Input-file=file get the URL from the file;
-t,–tries=number whether the download number (0 means infinite)-o–output-document=file download file to another file name-nc,–no-clobber do not overwrite the existing file-n,– timestamping only download than local new file-t,–timeout=seconds set time-out-y,–proxy=on/off shutdown agent
-nd,–no-directories do not establish directory-x,–force-directories force the directory to be established
–http-user=user Set HTTP User –http-passwd=pass set HTTP password –proxy-user=user set proxy user –proxy-passwd=pass set proxy password
-r,–recursive Download the entire website, directory (use caution)-l,–level=number download hierarchy
-a,–accept=list acceptable file types-r,–reject=list rejected file types-d,–domains=list acceptable domain names –exclude-domains=list rejected domain names-l,–relative Download the associated link –follow-ftp download only the FTP link-h,–span-hosts can download the outside host-i,–include-directories=list allowed directories-x,–exclude-directories=list Rejected Directories
The Chinese document name is encoded in the usual case, but it is normal at –cut-dirs, wget-r-np-nh–cut-dirs=3 ftp://host/test/test. txt wget-r-np-nh-nd ftp://host /test/%b4%fa%b8%d5.txt wget "ftp://host/test/*"%b4%fa%b8%d5.txt
Due to unknown reasons, it may be to avoid the special file name, wget will automatically take the part of the grab file name encode_string processed, so the patch will be encode_string processed into "%3a" this thing, with Decode_string restore into ":" and applies to the part of the directory and the file name, Decode_string is the wget built-in function.
Wget-t0-c-nh-x-np-b-m-p/home/sunny/nod32view/http://downloads1.kaspersky-labs.com/bases/-o wget.log
Original address: http://linux.blogbus.com/logs/46636997.html
Http://www.cnblogs.com/analyzer/archive/2010/05/04/1727438.html
CentOS installation wget and configuration (RPM)