安装rpmforge yum源
- font size decrease font size increase font size
- Print Email
CentOS 5 - install rpmforge yum repo
Install DAG GPG key
wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG key
rpm --import RPM-GPG-KEY.dag.txt # import the key
rm RPM-GPG-KEY.dag.txt # clean up after ourselves
Install yum-priorities
yum install yum-priorities
Download and install package (i386 - 32bit)
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm # install the rpmforge yum repo
rm rpmforge-release-0.3.6-1.el5.rf.i386.rpm # clean up after ourselves
Download and install package (x86_64 - 64bit)
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # install the rpmforge yum repo
rm rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm # clean up after ourselves
Set priorities
vim /etc/yum.repos.d/CentOS-Base.repo
[base] or [updates] or [addons] or [extras]
priority=1
[centosplus]
priority=2
vim /etc/yum.repos.d/rpmforge.repo
[rpmforge]
priority=10
Last modified onSaturday, 05 January 2013 13:22
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0004 | 406432 | {main}( ) | .../index.php:0 |
2 | 0.0509 | 4928128 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0509 | 4928128 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.1657 | 13310872 | Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ) | .../SiteApplication.php:233 |
5 | 0.1661 | 13335336 | Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ) | .../SiteApplication.php:194 |
6 | 0.1666 | 13390688 | Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:377 |
7 | 0.1667 | 13422168 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ) | .../ComponentHelper.php:402 |
8 | 0.1722 | 13827632 | K2ControllerItem->execute( $task = '' ) | .../k2.php:64 |
9 | 0.1722 | 13827632 | K2ControllerItem->display( $cachable = ???, $urlparams = ??? ) | .../BaseController.php:710 |
10 | 0.1784 | 14684160 | K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ) | .../item.php:78 |
11 | 0.1784 | 14684160 | K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ) | .../controller.php:19 |
12 | 0.1812 | 15143160 | Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = '安装rpmforge yum源'; public $description = 'CentOS 5 - install rpmforge yum repo Install DAG GPG key wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG keyrpm --impor...'; public $link = ''; public $base = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '122'; public $title = '安装rpmforge yum源'; public $alias = '安装rpmforge-yum源'; public $catid = '38'; public $published = '1'; public $introtext = '<p>CentOS 5 - install <strong style="color: black; background-color: #ffff66;">rpmforge</strong> <strong style="color: black; background-color: #a0ffff;">yum</strong> repo</p>\r\n<p><br /> <strong>Install DAG GPG key</strong></p>\r\n<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 99%; height: 66px;">wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG key<br />rpm --import RPM-GPG-KEY.dag.txt # import the key<br />'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2010-07-21 20:39:45'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:22:34'; public $modified_by = '63'; public $publish_up = '2010-07-21 20:39:30'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '10'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '3456'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/122-安装rpmforge-yum源.html'; public $printLink = '/item/122-安装rpmforge-yum源.html?tmpl=component&print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = '安装rpmforge yum源'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p>CentOS 5 - install <strong style="color: black; background-color: #ffff66;">rpmforge</strong> <strong style="color: black; background-color: #a0ffff;">yum</strong> repo</p>\r\n<p><br /> <strong>Install DAG GPG key</strong></p>\r\n<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 99%; height: 66px;">wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG key<br />rpm --import RPM-GPG-KEY.dag.txt # import the key<br />'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/121-wput.html'; public $nextTitle = 'wput'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $previousLink = '/item/123-mysql添加新用户和数据库(命令行模式和phpmyadmin).html'; public $previousTitle = 'MYSQL添加新用户和数据库(命令行模式和phpmyadmin)'; public $previousImageXSmall = ''; public $previousImageSmall = ''; public $previousImageMedium = ''; public $previousImageLarge = ''; public $previousImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F122-%25E5%25AE%2589%25E8%25A3%2585rpmforge-yum%25E6%25BA%2590.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=%E5%AE%89%E8%A3%85rpmforge+yum%E6%BA%90&url=https%3A%2F%2Fwww.shan.info%2Fitem%2F122-%25E5%25AE%2589%25E8%25A3%2585rpmforge-yum%25E6%25BA%2590.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&template=gk_publisher&link=527b5a0b56823754ccd3cddf01f34bb06f26f803' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ) | .../BaseController.php:663 |
13 | 0.1827 | 15163528 | K2ViewItem->display( $tpl = ??? ) | .../ViewController.php:102 |
14 | 0.2213 | 18345408 | K2ViewItem->display( $tpl = NULL ) | .../view.html.php:742 |
15 | 0.2213 | 18345408 | K2ViewItem->loadTemplate( $tpl = NULL ) | .../HtmlView.php:230 |
16 | 0.2222 | 18547456 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ) | .../HtmlView.php:701 |
- Published in 主机
- Read 3456 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0004 | 406432 | {main}( ) | .../index.php:0 |
2 | 0.0509 | 4928128 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.0509 | 4928128 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.1657 | 13310872 | Joomla\CMS\Application\SiteApplication->dispatch( $component = ??? ) | .../SiteApplication.php:233 |
5 | 0.1661 | 13335336 | Joomla\CMS\Component\ComponentHelper::renderComponent( $option = 'com_k2', $params = ??? ) | .../SiteApplication.php:194 |
6 | 0.1666 | 13390688 | Joomla\CMS\Component\ComponentHelper::executeComponent( $path = '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:377 |
7 | 0.1667 | 13422168 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php ) | .../ComponentHelper.php:402 |
8 | 0.1722 | 13827632 | K2ControllerItem->execute( $task = '' ) | .../k2.php:64 |
9 | 0.1722 | 13827632 | K2ControllerItem->display( $cachable = ???, $urlparams = ??? ) | .../BaseController.php:710 |
10 | 0.1784 | 14684160 | K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ) | .../item.php:78 |
11 | 0.1784 | 14684160 | K2ControllerItem->display( $cachable = TRUE, $urlparams = ['id' => 'INT', 'print' => 'INT', 'lang' => 'CMD', 'Itemid' => 'INT', 'm' => 'INT', 'amp' => 'INT', 'tmpl' => 'CMD', 'template' => 'CMD'] ) | .../controller.php:19 |
12 | 0.1812 | 15143160 | Joomla\CMS\Cache\Controller\ViewController->get( $view = class K2ViewItem { public $document = class Joomla\CMS\Document\HtmlDocument { public $_links = [...]; public $_custom = [...]; public $template = NULL; public $baseurl = NULL; public $params = NULL; public $_file = NULL; protected $_template = ''; protected $_template_tags = [...]; protected $_caching = NULL; private $_html5 = NULL; public $title = '安装rpmforge yum源'; public $description = 'CentOS 5 - install rpmforge yum repo Install DAG GPG key wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG keyrpm --impor...'; public $link = ''; public $base = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $language = 'en-gb'; public $direction = 'ltr'; public $_generator = 'Joomla! - Open Source Content Management'; public $_mdate = ''; public $_tab = '\t'; public $_lineEnd = '\n'; public $_charset = 'utf-8'; public $_mime = 'text/html'; public $_namespace = ''; public $_profile = ''; public $_scripts = [...]; public $_script = [...]; protected $scriptOptions = [...]; public $_styleSheets = [...]; public $_style = [...]; public $_metaTags = [...]; public $_engine = NULL; public $_type = 'html'; protected $mediaVersion = '15dbf078d61dbbf76811992dd0143dd9' }; protected $_name = 'item'; protected $_models = ['itemlist' => class K2ModelItemlist { ... }, 'item' => class K2ModelItem { ... }]; protected $_basePath = '/var/www/vhosts/shan.info/httpdocs/components/com_k2'; protected $_defaultModel = 'item'; protected $_layout = 'item'; protected $_layoutExt = 'php'; protected $_layoutTemplate = '_'; protected $_path = ['template' => [...], 'helper' => [...]]; protected $_template = '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php'; protected $_output = NULL; protected $_escape = 'htmlspecialchars'; protected $_charset = 'UTF-8'; protected $_errors = []; public $baseurl = ''; public $addLink = NULL; public $inlineCommentsModeration = FALSE; public $item = class stdClass { public $id = '122'; public $title = '安装rpmforge yum源'; public $alias = '安装rpmforge-yum源'; public $catid = '38'; public $published = '1'; public $introtext = '<p>CentOS 5 - install <strong style="color: black; background-color: #ffff66;">rpmforge</strong> <strong style="color: black; background-color: #a0ffff;">yum</strong> repo</p>\r\n<p><br /> <strong>Install DAG GPG key</strong></p>\r\n<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 99%; height: 66px;">wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG key<br />rpm --import RPM-GPG-KEY.dag.txt # import the key<br />'; public $fulltext = ''; public $video = NULL; public $gallery = NULL; public $extra_fields = NULL; public $extra_fields_search = ''; public $created = '2010-07-21 20:39:45'; public $created_by = '63'; public $created_by_alias = ''; public $checked_out = '0'; public $checked_out_time = '0000-00-00 00:00:00'; public $modified = '2013-01-05 12:22:34'; public $modified_by = '63'; public $publish_up = '2010-07-21 20:39:30'; public $publish_down = '0000-00-00 00:00:00'; public $trash = '0'; public $access = '1'; public $ordering = '10'; public $featured = '0'; public $featured_ordering = '0'; public $image_caption = ''; public $image_credits = ''; public $video_caption = ''; public $video_credits = ''; public $hits = '3456'; public $params = class Joomla\Registry\Registry { ... }; public $metadesc = ''; public $metadata = 'robots=\nauthor='; public $metakey = ''; public $plugins = ''; public $language = '*'; public $category = class TableK2Category { ... }; public $link = '/item/122-安装rpmforge-yum源.html'; public $printLink = '/item/122-安装rpmforge-yum源.html?tmpl=component&print=1'; public $tags = [...]; public $imageXSmall = ''; public $imageSmall = ''; public $imageMedium = ''; public $imageLarge = ''; public $imageXLarge = ''; public $attachments = [...]; public $rawTitle = '安装rpmforge yum源'; public $author = class Joomla\CMS\User\User { ... }; public $videoType = 'allvideos'; public $text = '<p>CentOS 5 - install <strong style="color: black; background-color: #ffff66;">rpmforge</strong> <strong style="color: black; background-color: #a0ffff;">yum</strong> repo</p>\r\n<p><br /> <strong>Install DAG GPG key</strong></p>\r\n<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 99%; height: 66px;">wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # download DAG GPG key<br />rpm --import RPM-GPG-KEY.dag.txt # import the key<br />'; public $event = class stdClass { ... }; public $jcfields = [...]; public $image = ''; public $imageWidth = '600'; public $comments = [...]; public $numOfComments = 0; public $nextLink = '/item/121-wput.html'; public $nextTitle = 'wput'; public $nextImageXSmall = ''; public $nextImageSmall = ''; public $nextImageMedium = ''; public $nextImageLarge = ''; public $nextImageXLarge = ''; public $previousLink = '/item/123-mysql添加新用户和数据库(命令行模式和phpmyadmin).html'; public $previousTitle = 'MYSQL添加新用户和数据库(命令行模式和phpmyadmin)'; public $previousImageXSmall = ''; public $previousImageSmall = ''; public $previousImageMedium = ''; public $previousImageLarge = ''; public $previousImageXLarge = ''; public $absoluteURL = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $langTagForFB = 'en_GB'; public $langTagForTW = 'en-gb'; public $langTagForLI = 'en_GB'; public $sharinglink = 'https://www.shan.info/item/122-%E5%AE%89%E8%A3%85rpmforge-yum%E6%BA%90.html'; public $socialLink = 'https%3A%2F%2Fwww.shan.info%2Fitem%2F122-%25E5%25AE%2589%25E8%25A3%2585rpmforge-yum%25E6%25BA%2590.html'; public $twitterURL = 'https://twitter.com/intent/tweet?text=%E5%AE%89%E8%A3%85rpmforge+yum%E6%BA%90&url=https%3A%2F%2Fwww.shan.info%2Fitem%2F122-%25E5%25AE%2589%25E8%25A3%2585rpmforge-yum%25E6%25BA%2590.html'; public $langTagForGP = ''; public $emailLink = '/component/mailto/?tmpl=component&template=gk_publisher&link=527b5a0b56823754ccd3cddf01f34bb06f26f803' }; public $user = class Joomla\CMS\User\User { protected $isRoot = FALSE; public $id = 0; public $name = NULL; public $username = NULL; public $email = NULL; public $password = NULL; public $password_clear = ''; public $block = NULL; public $sendEmail = 0; public $registerDate = NULL; public $lastvisitDate = NULL; public $activation = NULL; public $params = NULL; public $groups = [...]; public $guest = 1; public $lastResetTime = NULL; public $resetCount = NULL; public $requireReset = NULL; protected $_params = class Joomla\Registry\Registry { ... }; protected $_authGroups = NULL; protected $_authLevels = [...]; protected $_authActions = NULL; protected $_errorMsg = NULL; protected $userHelper = class Joomla\CMS\User\UserWrapper { ... }; protected $_errors = [...]; public $aid = 0; public $gid = 1 }; public $params = class Joomla\Registry\Registry { protected $data = class stdClass { ... }; protected $initialized = TRUE; public $separator = '.' }; public $pagination = class Joomla\CMS\Pagination\Pagination { public $limitstart = 0; public $limit = 10; public $total = 0; public $prefix = ''; public $pagesStart = 1; public $pagesStop = 0; public $pagesCurrent = 1; public $pagesTotal = 0; public $hideEmptyLimitstart = FALSE; protected $viewall = FALSE; protected $additionalUrlParams = [...]; protected $app = class Joomla\CMS\Application\SiteApplication { ... }; protected $data = NULL } }, $method = 'display', $id = ???, $wrkarounds = ??? ) | .../BaseController.php:663 |
13 | 0.1827 | 15163528 | K2ViewItem->display( $tpl = ??? ) | .../ViewController.php:102 |
14 | 0.2213 | 18345408 | K2ViewItem->display( $tpl = NULL ) | .../view.html.php:742 |
15 | 0.2213 | 18345408 | K2ViewItem->loadTemplate( $tpl = NULL ) | .../HtmlView.php:230 |
16 | 0.2222 | 18547456 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php ) | .../HtmlView.php:701 |