Slackware软件安装之转换RPM

时间:11-05-19 栏目:Linux, Slackware 作者:fantlam 评论:0 点击:1,279 views

Slackware还可以安装rpm包格式的软件。需要用到一个命令:rpm2txz   rpm2tgz 来转换

rpm2txz ****.rpm  后会出现   ****.txz

然后就可以用 installpkg *****.txz来安装了。   installpkg 参见:http://www.linuxsight.com/blog/1876

下面以chrome为例看看安装过程:

bash-4.1# rpm2txz google-chrome-stable_current_i386.rpm

Slackware package maker, version 3.14159.

Searching for symbolic links:
usr/bin/google-chrome -> /opt/google/chrome/google-chrome

Making symbolic link creation script:
( cd usr/bin ; rm -rf google-chrome )
( cd usr/bin ; ln -sf /opt/google/chrome/google-chrome google-chrome )

It is recommended that you make these lines your new installation script.

Would you like to make this stuff the install script for this package
and remove the symbolic links ([y]es, [n]o)? y
Removing symbolic links:
已删除"./usr/bin/google-chrome"

Creating your new ./install/doinst.sh...

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package:  /root/下载/google-chrome-stable_current_i386.txz

./
opt/
opt/google/
opt/google/chrome/
opt/google/chrome/product_logo_64.png
opt/google/chrome/resources.pak
opt/google/chrome/default-app-block
opt/google/chrome/libpdf.so
opt/google/chrome/xdg-settings
opt/google/chrome/google-chrome
opt/google/chrome/product_logo_24.png
opt/google/chrome/google-chrome.desktop
opt/google/chrome/product_logo_32.xpm
opt/google/chrome/libffmpegsumo.so
opt/google/chrome/chrome.pak
opt/google/chrome/chrome
opt/google/chrome/locales/
opt/google/chrome/locales/bg.pak
opt/google/chrome/locales/cs.pak
opt/google/chrome/locales/fi.pak
opt/google/chrome/locales/sw.pak
opt/google/chrome/locales/fa.pak
opt/google/chrome/locales/sv.pak
opt/google/chrome/locales/pl.pak
opt/google/chrome/locales/ko.pak
opt/google/chrome/locales/hi.pak
opt/google/chrome/locales/vi.pak
opt/google/chrome/locales/ro.pak
opt/google/chrome/locales/ml.pak
opt/google/chrome/locales/hr.pak
opt/google/chrome/locales/id.pak
opt/google/chrome/locales/uk.pak
opt/google/chrome/locales/fr.pak
opt/google/chrome/locales/mr.pak
opt/google/chrome/locales/en-GB.pak
opt/google/chrome/locales/kn.pak
opt/google/chrome/locales/gu.pak
opt/google/chrome/locales/pt-BR.pak
opt/google/chrome/locales/sr.pak
opt/google/chrome/locales/zh-TW.pak
opt/google/chrome/locales/ta.pak
opt/google/chrome/locales/nb.pak
opt/google/chrome/locales/zh-CN.pak
opt/google/chrome/locales/ja.pak
opt/google/chrome/locales/da.pak
opt/google/chrome/locales/fil.pak
opt/google/chrome/locales/de.pak
opt/google/chrome/locales/bn.pak
opt/google/chrome/locales/pt-PT.pak
opt/google/chrome/locales/hu.pak
opt/google/chrome/locales/tr.pak
opt/google/chrome/locales/el.pak
opt/google/chrome/locales/en-US.pak
opt/google/chrome/locales/it.pak
opt/google/chrome/locales/ru.pak
opt/google/chrome/locales/nl.pak
opt/google/chrome/locales/lt.pak
opt/google/chrome/locales/et.pak
opt/google/chrome/locales/ar.pak
opt/google/chrome/locales/ca.pak
opt/google/chrome/locales/lv.pak
opt/google/chrome/locales/es-419.pak
opt/google/chrome/locales/sl.pak
opt/google/chrome/locales/sk.pak
opt/google/chrome/locales/th.pak
opt/google/chrome/locales/es.pak
opt/google/chrome/locales/he.pak
opt/google/chrome/locales/te.pak
opt/google/chrome/locales/am.pak
opt/google/chrome/libppGoogleNaClPluginChrome.so
opt/google/chrome/product_logo_22.png
opt/google/chrome/libgcflashplayer.so
opt/google/chrome/xdg-mime
opt/google/chrome/plugin.vch
opt/google/chrome/resources/
opt/google/chrome/resources/inspector/
opt/google/chrome/resources/inspector/DevTools.js
opt/google/chrome/resources/inspector/Images/
opt/google/chrome/resources/inspector/Images/auditsIcon.png
opt/google/chrome/resources/inspector/Images/statusbarBottomBackgroundChromium.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillYellow.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallDown.png
opt/google/chrome/resources/inspector/Images/statusbarMenuButtonChromium.png
opt/google/chrome/resources/inspector/Images/scriptsSilhouette.png
opt/google/chrome/resources/inspector/Images/glossyHeader.png
opt/google/chrome/resources/inspector/Images/timelineIcon.png
opt/google/chrome/resources/inspector/Images/enableOutlineButtonGlyph.png
opt/google/chrome/resources/inspector/Images/statusbarBottomBackground.png
opt/google/chrome/resources/inspector/Images/consoleButtonGlyph.png
opt/google/chrome/resources/inspector/Images/warningOrangeDot.png
opt/google/chrome/resources/inspector/Images/thumbActiveHoriz.png
opt/google/chrome/resources/inspector/Images/breakpointsDeactivateButtonGlyph.png
opt/google/chrome/resources/inspector/Images/searchSmallBlue.png
opt/google/chrome/resources/inspector/Images/recordButtonGlyph.png
opt/google/chrome/resources/inspector/Images/elementsIcon.png
opt/google/chrome/resources/inspector/Images/splitviewDividerBackground.png
opt/google/chrome/resources/inspector/Images/successGreenDot.png
opt/google/chrome/resources/inspector/Images/treeDownTriangleWhite.png
opt/google/chrome/resources/inspector/Images/reloadButtonGlyph.png
opt/google/chrome/resources/inspector/Images/undockButtonGlyph.png
opt/google/chrome/resources/inspector/Images/resourceJSIcon.png
opt/google/chrome/resources/inspector/Images/statusbarResizerVertical.png
opt/google/chrome/resources/inspector/Images/timelinePillRed.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillGreen.png
opt/google/chrome/resources/inspector/Images/resourcesSizeGraphIcon.png
opt/google/chrome/resources/inspector/Images/trackHoriz.png
opt/google/chrome/resources/inspector/Images/timelinePillBlue.png
opt/google/chrome/resources/inspector/Images/resourceDocumentIconSmall.png
opt/google/chrome/resources/inspector/Images/clearConsoleButtonGlyph.png
opt/google/chrome/resources/inspector/Images/paneBottomGrowActive.png
opt/google/chrome/resources/inspector/Images/debuggerStepInto.png
opt/google/chrome/resources/inspector/Images/profileGroupIcon.png
opt/google/chrome/resources/inspector/Images/segmentSelectedEndChromium.png
opt/google/chrome/resources/inspector/Images/timelinePillGreen.png
opt/google/chrome/resources/inspector/Images/timelineBarYellow.png
opt/google/chrome/resources/inspector/Images/thumbVert.png
opt/google/chrome/resources/inspector/Images/breakpointCounterBorder.png
opt/google/chrome/resources/inspector/Images/searchSmallBrightBlue.png
opt/google/chrome/resources/inspector/Images/treeDownTriangleBlack.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillPurple.png
opt/google/chrome/resources/inspector/Images/statusbarResizerHorizontal.png
opt/google/chrome/resources/inspector/Images/treeUpTriangleBlack.png
opt/google/chrome/resources/inspector/Images/excludeButtonGlyph.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRight.png
opt/google/chrome/resources/inspector/Images/segment.png
opt/google/chrome/resources/inspector/Images/timelinePillGray.png
opt/google/chrome/resources/inspector/Images/errorRedDot.png
opt/google/chrome/resources/inspector/Images/debuggerStepOver.png
opt/google/chrome/resources/inspector/Images/segmentSelected.png
opt/google/chrome/resources/inspector/Images/userInputIcon.png
opt/google/chrome/resources/inspector/Images/glossyHeaderPressed.png
opt/google/chrome/resources/inspector/Images/back.png
opt/google/chrome/resources/inspector/Images/timelinePillPurple.png
opt/google/chrome/resources/inspector/Images/profileSmallIcon.png
opt/google/chrome/resources/inspector/Images/segmentChromium.png
opt/google/chrome/resources/inspector/Images/focusButtonGlyph.png
opt/google/chrome/resources/inspector/Images/paneGrowHandleLine.png
opt/google/chrome/resources/inspector/Images/timelineBarOrange.png
opt/google/chrome/resources/inspector/Images/debuggerPause.png
opt/google/chrome/resources/inspector/Images/sessionStorage.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallDownWhite.png
opt/google/chrome/resources/inspector/Images/databaseTable.png
opt/google/chrome/resources/inspector/Images/statusbarBackground.png
opt/google/chrome/resources/inspector/Images/segmentHoverChromium.png
opt/google/chrome/resources/inspector/Images/recordToggledButtonGlyph.png
opt/google/chrome/resources/inspector/Images/nodeSearchButtonGlyph.png
opt/google/chrome/resources/inspector/Images/breakpointConditionalBorder.png
opt/google/chrome/resources/inspector/Images/thumbHoriz.png
opt/google/chrome/resources/inspector/Images/spinner.gif
opt/google/chrome/resources/inspector/Images/timelineBarGreen.png
opt/google/chrome/resources/inspector/Images/pauseOnExceptionButtonGlyph.png
opt/google/chrome/resources/inspector/Images/profilesSilhouette.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillGray.png
opt/google/chrome/resources/inspector/Images/enableSolidButtonGlyph.png
opt/google/chrome/resources/inspector/Images/resourcePlainIcon.png
opt/google/chrome/resources/inspector/Images/programCounterBorder.png
opt/google/chrome/resources/inspector/Images/glossyHeaderSelected.png
opt/google/chrome/resources/inspector/Images/segmentHoverEndChromium.png
opt/google/chrome/resources/inspector/Images/statusbarMenuButton.png
opt/google/chrome/resources/inspector/Images/warningMediumIcon.png
opt/google/chrome/resources/inspector/Images/cookie.png
opt/google/chrome/resources/inspector/Images/breakpointsActivateButtonGlyph.png
opt/google/chrome/resources/inspector/Images/segmentHover.png
opt/google/chrome/resources/inspector/Images/applicationCache.png
opt/google/chrome/resources/inspector/Images/consoleIcon.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRightDownWhite.png
opt/google/chrome/resources/inspector/Images/trackVert.png
opt/google/chrome/resources/inspector/Images/userInputResultIcon.png
opt/google/chrome/resources/inspector/Images/treeRightTriangleBlack.png
opt/google/chrome/resources/inspector/Images/errorMediumIcon.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRightWhite.png
opt/google/chrome/resources/inspector/Images/paneAddButtons.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRightBlack.png
opt/google/chrome/resources/inspector/Images/resourceCSSIcon.png
opt/google/chrome/resources/inspector/Images/frame.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillOrange.png
opt/google/chrome/resources/inspector/Images/debuggerContinue.png
opt/google/chrome/resources/inspector/Images/resourceDocumentIcon.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRightDown.png
opt/google/chrome/resources/inspector/Images/profileIcon.png
opt/google/chrome/resources/inspector/Images/warningIcon.png
opt/google/chrome/resources/inspector/Images/checker.png
opt/google/chrome/resources/inspector/Images/warningsErrors.png
opt/google/chrome/resources/inspector/Images/statusbarMenuButtonSelectedChromium.png
opt/google/chrome/resources/inspector/Images/userInputPreviousIcon.png
opt/google/chrome/resources/inspector/Images/gearButtonGlyph.png
opt/google/chrome/resources/inspector/Images/treeRightTriangleWhite.png
opt/google/chrome/resources/inspector/Images/segmentSelectedChromium.png
opt/google/chrome/resources/inspector/Images/errorIcon.png
opt/google/chrome/resources/inspector/Images/segmentSelectedEnd.png
opt/google/chrome/resources/inspector/Images/timelineBarRed.png
opt/google/chrome/resources/inspector/Images/percentButtonGlyph.png
opt/google/chrome/resources/inspector/Images/paneSettingsButtons.png
opt/google/chrome/resources/inspector/Images/networkIcon.png
opt/google/chrome/resources/inspector/Images/localStorage.png
opt/google/chrome/resources/inspector/Images/database.png
opt/google/chrome/resources/inspector/Images/largerResourcesButtonGlyph.png
opt/google/chrome/resources/inspector/Images/graphLabelCalloutRight.png
opt/google/chrome/resources/inspector/Images/timelinePillOrange.png
opt/google/chrome/resources/inspector/Images/resourcesTimeGraphIcon.png
opt/google/chrome/resources/inspector/Images/statusbarButtonsChromium.png
opt/google/chrome/resources/inspector/Images/dockButtonGlyph.png
opt/google/chrome/resources/inspector/Images/graphLabelCalloutLeft.png
opt/google/chrome/resources/inspector/Images/profilesIcon.png
opt/google/chrome/resources/inspector/Images/closeButtons.png
opt/google/chrome/resources/inspector/Images/forward.png
opt/google/chrome/resources/inspector/Images/resourcesIcon.png
opt/google/chrome/resources/inspector/Images/timelineDots.png
opt/google/chrome/resources/inspector/Images/treeUpTriangleWhite.png
opt/google/chrome/resources/inspector/Images/searchSmallWhite.png
opt/google/chrome/resources/inspector/Images/segmentEnd.png
opt/google/chrome/resources/inspector/Images/timelineCheckmarks.png
opt/google/chrome/resources/inspector/Images/timelinePillYellow.png
opt/google/chrome/resources/inspector/Images/statusbarMenuButtonSelected.png
opt/google/chrome/resources/inspector/Images/glossyHeaderSelectedPressed.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallDownBlack.png
opt/google/chrome/resources/inspector/Images/scriptsIcon.png
opt/google/chrome/resources/inspector/Images/statusbarBackgroundChromium.png
opt/google/chrome/resources/inspector/Images/paneBottomGrow.png
opt/google/chrome/resources/inspector/Images/timelineBarPurple.png
opt/google/chrome/resources/inspector/Images/debuggerStepOut.png
opt/google/chrome/resources/inspector/Images/helpButtonGlyph.png
opt/google/chrome/resources/inspector/Images/disclosureTriangleSmallRightDownBlack.png
opt/google/chrome/resources/inspector/Images/thumbHoverHoriz.png
opt/google/chrome/resources/inspector/Images/thumbHoverVert.png
opt/google/chrome/resources/inspector/Images/statusbarButtons.png
opt/google/chrome/resources/inspector/Images/timelineBarBlue.png
opt/google/chrome/resources/inspector/Images/timelineBarGray.png
opt/google/chrome/resources/inspector/Images/searchSmallGray.png
opt/google/chrome/resources/inspector/Images/toolbarItemSelected.png
opt/google/chrome/resources/inspector/Images/radioDot.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillRed.png
opt/google/chrome/resources/inspector/Images/resourcePlainIconSmall.png
opt/google/chrome/resources/inspector/Images/popoverArrows.png
opt/google/chrome/resources/inspector/Images/splitviewDimple.png
opt/google/chrome/resources/inspector/Images/breakpointBorder.png
opt/google/chrome/resources/inspector/Images/timelineHollowPillBlue.png
opt/google/chrome/resources/inspector/Images/popoverBackground.png
opt/google/chrome/resources/inspector/Images/segmentHoverEnd.png
opt/google/chrome/resources/inspector/Images/breakpointConditionalCounterBorder.png
opt/google/chrome/resources/inspector/Images/thumbActiveVert.png
opt/google/chrome/resources/inspector/Images/goArrow.png
opt/google/chrome/resources/inspector/devTools.css
opt/google/chrome/resources/inspector/devtools.html
opt/google/chrome/product_logo_16.png
opt/google/chrome/product_logo_48.png
opt/google/chrome/product_logo_256.png
opt/google/chrome/product_logo_32.png
opt/google/chrome/product_logo_128.png
opt/google/chrome/chrome-sandbox
install/
install/doinst.sh
etc/
etc/cron.daily/
etc/cron.daily/google-chrome
usr/
usr/bin/
usr/share/
usr/share/man/
usr/share/man/man1/
usr/share/man/man1/google-chrome.1.gz
usr/share/gnome-control-center/
usr/share/gnome-control-center/default-apps/
usr/share/gnome-control-center/default-apps/google-chrome.xml
WARNING:  /usr/share/man (with possibly not gzipped man pages) detected

Slackware package /root/下载/google-chrome-stable_current_i386.txz created.

bash-4.1# ls
google-chrome-stable_current_i386.rpm  google-chrome-stable_current_i386.txz
bash-4.1# installpkg google-chrome-stable_current_i386.txz
Verifying package google-chrome-stable_current_i386.txz.
Installing package google-chrome-stable_current_i386.txz:
PACKAGE DESCRIPTION:
Executing install script for google-chrome-stable_current_i386.txz.
Package google-chrome-stable_current_i386.txz installed.

当然这里只是做演示,你可以直接下载slackware格式的chrome:http://code.google.com/p/chromium/wiki/LinuxChromiumPackages
而且运行时会出现

bash-4.1# google-chrome
/usr/bin/google-chrome: error while loading shared libraries: libnss3.so.1d: cannot open shared object file: No such file or directory

这里暂不做讨论。

------====== 本站公告 ======------
linux视野欢迎你