pkg autoremoveの対象とは?

このQ&Aのポイント
  • pkg autoremoveを実行すると36個のパッケージが該当しますが、対象はpkg installで導入したもののみです。
  • portmasterやmake installでインストールしたパッケージはpkg autoremoveの対象にはなりません。
  • 現在の環境はFreeBSD 10-RELEASEで、apacheなど一部のパッケージは手動でパッチを当てたため、make deinstall/installで再導入されています。
回答を見る
  • ベストアンサー

pkg autoremoveの対象について

pkg autoremoveを実行すると36個のパッケージが該当しました。 対象が多数あるので、削除するのが不安な状況です。 pkg autoremoveの対象は、pkg installで導入したもののみが対象となるのでしょうか。 それとも、portmasterやmake installなどでインストールしたものも対象となっているのでしょうか。 現在の環境に対しては、make installでインストールし、アップグレードなどはportmasterを利用しておりました。 例外として、apacheは手動でパッチを当てたかったので、make deinstall/installで再導入した経緯があります。 (perlやphpなどもdeinstall/installしたような記憶があるような気がしますが曖昧です...) ちなみに、pkg autoremoveの対象は下記となります。 # pkg autoremove -n Deinstallation has been requested for the following 36 packages: automake-1.14 autoconf-2.69 autoconf-wrapper-20131203 automake-wrapper-20131203 bdftopcf-1.0.4 bigreqsproto-1.1.2 bison-2.7.1,1 boost-jam-1.55.0 boost-libs-1.55.0 cmake-2.8.12.1_4 cmake-modules-2.8.12.1_1 flex-2.5.38_2 gmake-3.82_1 gmake-lite-3.82 gobject-introspection-1.36.0_2 help2man-1.43.3_1 intltool-0.50.2 libXfont-1.4.7,1 fontsproto-2.1.2 libcheck-0.9.13 libtool-2.4.2_3 libxslt-1.1.28_3 libgcrypt-1.5.3_3 libgpg-error-1.13_1 m4-1.4.17_1,1 openjpeg-2.1.0 p5-Locale-gettext-1.05_3 p5-XML-Parser-2.41_1 scons-2.3.0 unzip-6.0_1 xcb-proto-1.10_1 xcmiscproto-1.2.2 xf86bigfontproto-1.2.0 xorg-macros-1.19.0 xtrans-1.3.4_1 zip-3.0 The deinstallation will free 191 MB 環境は FreeBSD 10-RELEASE です。 宜しくお願い致します。

  • BSD系OS
  • 回答数1
  • ありがとう数19

質問者が選んだベストアンサー

  • ベストアンサー
  • wormhole
  • ベストアンサー率28% (1619/5653)
回答No.1

portsでmake installしたものやportmasterでインストールしたものはpkgの管理対象になるのでpkg autoremoveの対象になると思います。 portsでmake installしたものをアンインストールするときpkg deleteで行ったりしますし。

rucias
質問者

お礼

ありがとうございます。確かに仰る通りですね。 autoremoveの対象を保存しpkg autoremoveを実行しました。 現状は、正常に動作しているようですので、 しばらく様子見してみます。

関連するQ&A

  • ./configureがしたいのですが・・・

    /usr/ports/www/apache22からportinstallしたいのですが、make時のoptionが多すぎてわからないので、とりあえずfulloptionでmakeしてその後色々いじって勉強したいのですが、色々検索エンジンで調べてみると #./configure --prefix=/usr/local/test/apache2 --enable-mods-shared=all #make # make install でできるらしいと書いてました。 しかし、./configureとコマンド入れてもcommand not foundになるのでautoconfとかautomakeがあるとできるらしいのでpkg_infoしてみるとすでにautoconf-2.59_2 autoconf-2.61 s automake-1.4.6_2 が/usr/local/binに入ってるようです。 どうしたら./configureできるようになるのでしょう? または./configure使わなくてもapache2.2をfulloptionでインストールするmake方法などありますでしょうか?

  • FreeBSD4.7にphp5.2の導入失敗

    FreeBSD4.7にphp5.2.17をインストールしましたが、makeの時点でエラーが出てしまいました。 OS環境が古い気もするので、このOSにすんなり入るphp5.2系バージョンや、packageが入手出来るのであれば教えてください。 補足 Apacheは1.3.8 レンタルサーバなので、OSのアップグレードはできません。 以下インストールログ ******* /usr/ports/lang/php52# make (ちなみに/php5からmakeしても似たようなエラー) ===> php52-5.2.17 depends on file: /usr/local/bin/autoconf-2.68 - not found ===> Verifying install for /usr/local/bin/autoconf-2.68 in /usr/ports/devel/autoconf ===> Building for autoconf-2.68 gmake all-recursive gmake[1]: Entering directory `/var/build/ports/devel/autoconf/work/autoconf-2.68' Making all in bin gmake[2]: Entering directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/bin' gmake[2]: Nothing to be done for `all'. gmake[2]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/bin' Making all in . 中略 autoconf-2.68.texi:24219: Unknown command `'. autoconf-2.68.texi:24311: Unknown command `'. makeinfo: Removing output file `autoconf-2.68.info' due to errors; use --force to preserve. gmake[2]: *** [autoconf-2.68.info] Error 1 gmake[2]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68/doc' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/build/ports/devel/autoconf/work/autoconf-2.68' gmake: *** [all] Error 2 *** Error code 1 Stop in /ports/devel/autoconf. *** Error code 1 Stop in /ports/lang/php52. *** Error code 1 Stop in /ports/lang/php52. ※MySQL5.1系、php5.2系をインストールするのが目的です。 portsからだとMySQL5.1も同様にエラーでインストールできないので、こちらも合わせてアドバイス貰えると嬉しいです。 以上、宜しくお願いいたします。

  • glibのインストールについて

    Mac OSX10.7.5です。 glib2.34.3をインストールしたいのですが、makeのところでエラーが出ているようです。 Making install in m4macros cd .. && /bin/sh ./config.status m4macros/Makefile config.status: creating m4macros/Makefile make[2]: Nothing to be done for `install-exec-am'. .././install-sh -c -d '/usr/local/share/aclocal' /usr/bin/install -c -m 644 glib-2.0.m4 glib-gettext.m4 gsettings.m4 '/usr/local/share/aclocal' 他にはinstall-data-am, install-data-hookに対して同じようなメッセージが出ています。 他に必要なパッケージ(pkg-config, automake, libffi, gettext等)はfink経由もしくは直接インストールしました。Lionでのfinkはglibに対応しておらず、また使うソフト(AFNI)でMacportsは勧められていないため、インストールを試みているところです。 どなたか対処法をお願いします。

  • libgdのmake でエラー

    perl で GD を使うために libgd をインストールしようとしているのですが、make で次のようなエラーがでて先に進めません。どうすればいいでしょうか? cd . && /bin/sh /var/morita/linux_apps/gd-2.0.35/config/missing --run aclocal-1.9 -I config aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library cd . && /bin/sh /var/morita/linux_apps/gd-2.0.35/config/missing --run automake-1.9 --foreign Makefile.am:18: Libtool library used but `LIBTOOL' is undefined Makefile.am:18: Makefile.am:18: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' Makefile.am:18: to `configure.ac' and run `aclocal' and `autoconf' again. make: *** [Makefile.in] Error 1 libgdのバージョンはgd-2.0.35です。 configureのスイッチは ./configure --bindir=/usr/local/bin/gd-2.0.35 です。 OSはlinux(CentOS 4.4)です

  • make.sh実行時のエラー対応方法に困っています。

    皆さん、こんにちわ。 大学の研究室の勧めで、 少しづつLinuxの事を勉強しだした者です。 今回は、先生に「インストールしておいてね!」と頼まれた、 シミュレーションソフトのコンパイルに うまくいかず悩んでおりましたが、 研究室の先生がしばらく出張で連絡が取れないのと、 周囲に質問できる人がおりませんで、 一生懸命に取り組んだのですが、 突破口が見つからず、 困り果てて質問させていただきました。 先生には2つのファイルを渡されました。 1つは、シミュレータソフトのソース(C++)でして、 もう一つは、 たぶんソースを「make」するためのソフトで make.shという名前のものです。 先生には簡単な手順書を渡されていましたが、 本当に簡単なものでして、 以下にあるような、たった2行のものでした。 (1)ソースをFTPやSCPでサーバにあげて解凍(tar.gz)する。 (2)もう1つのファイル「make.sh」を実行する。 上記(1)はさすがに成功しました。 次に(2)に移りました。 すると、まりにも長いテキストなので一部割愛しますが、 以下のエラー文がでてきて成功しませんでした。 # sh make.sh compile ctl configure.ac:4: error: Autoconf version 2.61 or higher is required configure.ac:4: the top level autom4te: /usr/bin/m4 failed with exit status: 63 make.sh: line 8: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. compile csx configure.ac:4: error: Autoconf version 2.61 or higher is required configure.ac:4: the top level autom4te: /usr/bin/m4 failed with exit status: 63 make.sh: line 8: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. compile mdt checking for boostlib >= 1.33.1... yes checking whether the Boost::Signals library is available... yes checking for exit in -lboost_signals-gcc41-mt-1_36... yes checking for ctl... no configure: error: could not found libctl. if you have compiled libctl (still not installed) give a PATH to --with-ctl option. make: *** No targets specified and no makefile found. Stop. compile ndt compile ndt checking for boostlib >= 1.33.1... yes checking for ctl... no configure: error: could not found libctl. if you have compiled libctl (still not installed) give a PATH to --with-ctl option. make: *** No targets specified and no makefile found. Stop. compile cstp checking for boostlib >= 1.33.1... yes checking for ctl... no configure: error: could not found libctl. if you have compiled libctl (still not installed) give a PATH to --with-ctl option. make: *** No targets specified and no makefile found. Stop. compile csrpc checking for boostlib >= 1.33.1... yes checking for ctl... no configure: error: could not found libctl. if you have compiled libctl (still not installed) give a PATH to --with-ctl option. make: *** No targets specified and no makefile found. Stop. compile kbr checking for SHA1 in -lcrypto... no configure: error: could not found libcrypto. make: *** No targets specified and no makefile found. Stop. compile ovsim checking boost/assert.hpp usability... no checking boost/assert.hpp presence... no checking for boost/assert.hpp... no configure: error: Can't find "boost c++ library". Please install. make: *** No targets specified and no makefile found. Stop. make.sh: line 24: qmake-qt4: command not found make: *** No targets specified and no makefile found. Stop. どうすれば、「make.sh」に成功するのか?と、 とりあえず、エラーのでている内容で、 不足しているものについては、 インストールしてみよう!と思い、 # yum install boost # yum install qt4 これらにより、例えばboostやqt4に関するエラーなどについては、 解消されるのだと思いつつトライしてみたのですが、 yumインストールに成功するも、 全くエラー内容に改善は無く、 エラーの対処が分からなくなってしまいました状態です。 初心者の質問ですので、 回答するのは不足点などもあるかもしれませんが、 どなたか、アドバイスいただけると、 大変ありがたいです。 OSはCentOS5系になっています。 どうぞ宜しくお願い致します。

  • .pkgについて

    10.5.8です。 フォルダに.pkgの拡張子を付けてしまい、.pkgの文字を削除してもフォルダに戻らず中のデータを見ることができなくなりました。。 情報を見る(コマンド+I)で名前と拡張子に付いていた.pkgを消しても戻りません。 別の方法をご存知の方いらっしゃいますか?

    • ベストアンサー
    • Mac
  • pkg-configの使い方

    オープンソースを落として、./configureするとconfigure:error表示がされ、pkg-configについて書かれてきました。 manで調べても、どんな目的で何の効果が得られるのかわかりません。 引数の指定はディレクトリでいいのですか?

  • .pkgの中身を知りたい

    アンインスールの参考に、インストーラー(.pkg)の中身が知りたいのですが「パッケージの内容を表示」で0項目になります。なぜ?(^_^;) 実体はモデムのインストーラーなので、手動でインストールしても良いかなぁと思っているのですが... 中身を知る方法があれば教えてください<(_ _)>

    • ベストアンサー
    • Mac
  • .pkgというファイルについて。

    よくソフトのダウンロードやi podアップデート等を行うと出てくる、小包を開いた様なアイコンのファイルで「.pkg」っていうファイルが有るじゃないですか? あれってどんな役割のファイルなのでしょうか? また、あのファイルはソフトのインストールが終了したら削除してしまっていいものなのでしょうか? Windowsを使用していた際には見なかった気がするんですが、macのみのファイルなんですか? 質問だらけの文章で申し訳有りませんが、よろしくお願いします。

    • ベストアンサー
    • Mac
  • pkg-config のPKG_CONFIG_PATHを設定するには?

    $HOME/local/lib/pkgconfig に .pcファイルがあるので set PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig %pkg-config --exists glib-2.0 エラーになってしまいます。 %pkg-config --version 0.15.0 ※root管理権限はありません。